View Single Post
Old Nov 29th, 2007, 9:37 AM   #10
pegasus001
Hobbyist Programmer
 
pegasus001's Avatar
 
Join Date: Nov 2006
Location: 163H
Posts: 213
Rep Power: 2 pegasus001 is on a distinguished road
Re: SELECT statement

Quote:
mysql_connect("$host", "$username", "$password")or die("cannot connect");
The $host variable is a string by itself, try removing the double quotes.

Just a thought, though.
__________________
You never test the depth of a river with both feet.
The believer is happy. The doubter is wise.
Free speech carries with it some freedom to listen.
The next generation will always surpass the previous one. It`s one of the never ending cycles of life.
pegasus001 is offline   Reply With Quote