PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 23rd, 2012, 01:26 PM
phpnoob13 phpnoob13 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 3 phpnoob13 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 52 m 44 sec
Reputation Power: 0
Php mysql noob question

i was following a tutorial on a site , and after reading it and trying to learn from it ... i have arranged a lot of things...from it ..

i am a noob in php and mysql and i still do not understand a lot of things ...

We are sorry, new user accounts are not permitted to create posts containing URLs

what a bucn of ****ing amazing idiots

what are those things marked in red called ?


thanks

Reply With Quote
  #2  
Old October 23rd, 2012, 02:26 PM
MauroEldritch's Avatar
MauroEldritch MauroEldritch is offline
Contributing User
Click here for more information
 
Join Date: Oct 2012
Location: Buenos Aires, Argentina
Posts: 64 MauroEldritch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 36 m 5 sec
Reputation Power: 1
Quote:
Originally Posted by phpnoob13
i was following a tutorial on a site , and after reading it and trying to learn from it ... i have arranged a lot of things...from it ..

i am a noob in php and mysql and i still do not understand a lot of things ...

We are sorry, new user accounts are not permitted to create posts containing URLs

what a bucn of ****ing amazing idiots

what are those things marked in red called ?


thanks


Is it just me or maybe nobody will find out what are you talking about?

a) You cannot post links because you're new.
b) You just created this thread and the whole account for your trouble (user phpnoob :S)
c) Are trying to troll us? Or is it a legit real request? If so, you can put your links replacing . for , and write again the whole question EXPLAINING what's happening, what are you trying to do, what should happen (what would you LIKE and WANT to happen) as expected, and what actually happens and gives you an error message.

Regards.

Reply With Quote
  #3  
Old October 23rd, 2012, 03:32 PM
phpnoob13 phpnoob13 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 3 phpnoob13 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 52 m 44 sec
Reputation Power: 0
ht tp://i50.tinypic.com/1znspz8.jpg

without posting the image .. i could not ask any questions ...lol

anyway my doubt was .. what is those things marked in red called ?

are those called connection variables ?

and why are some variables in brackets ?

Reply With Quote
  #4  
Old October 23rd, 2012, 03:47 PM
MauroEldritch's Avatar
MauroEldritch MauroEldritch is offline
Contributing User
Click here for more information
 
Join Date: Oct 2012
Location: Buenos Aires, Argentina
Posts: 64 MauroEldritch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 36 m 5 sec
Reputation Power: 1
Well, my friend.

The parts marked with $ just like $help are variables.
Many of them containing a QUERY (A statement that will create a certain quantity of data handlings and almost always will return a value).

The first chunk of code will do as follows:

Set $sql3 as a variable containing a query. (Select every match of 'id' -given in a prior part of the code not provided in your chunk - of that part only we care about the field named 'view', on a table provided by another variable also not provided in your example). See? It's easy.

Then we execute a query named $sql3
Guess what... yes, it's the one I described above, mate.

Then, we create an array (a long 'list' of things - you better get backup from a manual, I recommend Php And MySQL from Novice to Expert from Jason W. Gilmore, he's a crack) from the obtained results.

Variable 'view' ($view) contains the array, of values obtained from... guess... the row VIEW from the last query executed.

You may be able to find out the rest. Believe this are the basic facts, so you better handle it well before heading far away in the theme.

Regards.

Reply With Quote
  #5  
Old October 23rd, 2012, 03:52 PM
r937's Avatar
r937 r937 is offline
SQL Consultant
Click here for more information.
 
Join Date: Feb 2003
Location: Toronto Canada
Posts: 26,376 r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level)r937 User rank is General 47th Grade (Above 100000 Reputation Level) 
Time spent in forums: 3 Months 1 Week 2 Days 7 h 35 m 43 sec
Reputation Power: 4140
Quote:
Originally Posted by phpnoob13
what a bucn of ****ing amazing idiots
insulting us is truly a brilliant way to make us feel warm towards you and willing to answer your questions

the reason for the "no urls for new members" rule is simple -- spammers

blame them, not us

to answer your question, those things you marked in red are called php variables

some of them are in parentheses because the relevant php syntax (e.g. a function) requires it

feel any better now?
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book

Reply With Quote
  #6  
Old October 23rd, 2012, 04:13 PM
phpnoob13 phpnoob13 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 3 phpnoob13 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 52 m 44 sec
Reputation Power: 0
thanks for the book suggestions and thanks for clearing my doubts

Reply With Quote
  #7  
Old October 24th, 2012, 08:24 AM
SecurityDavid SecurityDavid is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2011
Posts: 170 SecurityDavid User rank is Second Lieutenant (5000 - 10000 Reputation Level)SecurityDavid User rank is Second Lieutenant (5000 - 10000 Reputation Level)SecurityDavid User rank is Second Lieutenant (5000 - 10000 Reputation Level)SecurityDavid User rank is Second Lieutenant (5000 - 10000 Reputation Level)SecurityDavid User rank is Second Lieutenant (5000 - 10000 Reputation Level)SecurityDavid User rank is Second Lieutenant (5000 - 10000 Reputation Level)SecurityDavid User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 2 h 34 m 47 sec
Reputation Power: 53
Before you get too far, find a different tutorial. The mysql functions in your example are depreciated and if you're just starting out, you should be learning mysqli or PDO. It will make your like so much easier to learn correctly the first time.
Comments on this post
badger_fruit agrees: PDO isn't so difficult and there's a load of tutorials out there aimed at every experience level

Reply With Quote
  #8  
Old October 24th, 2012, 10:39 PM
MauroEldritch's Avatar
MauroEldritch MauroEldritch is offline
Contributing User
Click here for more information
 
Join Date: Oct 2012
Location: Buenos Aires, Argentina
Posts: 64 MauroEldritch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 36 m 5 sec
Reputation Power: 1
You're welcome. But learn to handle your messages in a proper way, learn from the older users here, I've spent little time but I have learned a lot from this people.

Keep on my reco and read that book. It covers both PHP and MySQL also with security tips.

Keep an eye on your language, and welcome.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > Php mysql noob question

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap