I saw this somewhere on this site but can't remember exactly where.
Can anybody lead me there or tell me about it?
Many thanx
I saw this somewhere on this site but can't remember exactly where.
Can anybody lead me there or tell me about it?
Many thanx
Firstly, I assume that you are passing the $sname2 variable approproately - I bet you are, that's why you have not included that on the code sent.
My suggestion is to include the qoutes on the '$sname2' variable in the query.
$connect = mysql_connect("localhost","testguy","test");
$snamecheck = mysql_query("SELECT * FROM aol_v2 WHERE sname='$sname2'");
echo "$snamecheck";
-Andy-