02-19-2008, 10:55 AM
|
#8 (permalink)
|
|
The Frequenter
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
|
Quote:
Originally Posted by bmathers
can you explain what the difference is between the single and double qoutes, sorry for being simple, justtrying to understand everything.
|
Double quotes can be used like this;
PHP Code:
echo "Hello, my name is $name.";
This most likely, when defined $name, exports Hello, my name is insert_name_here
The same doesn't go for the single quotes although they are a lot easier to use. Since you'll make echo's like this;
PHP Code:
echo '<a href="link.htm">link</a>'; // and of course $query = mysql_query('SELECT * FROM table WHERE name = "'.$name.'"');
Adam would be more qualified to explain it into more depth but those are the basics really. Also, double quotes understand the usages of "\n" (HTML Enter) and "\r" (HTML Tab).
Good luck!
__________________
"Life is a bitch, take that bitch on a ride"
|
|
|