someone tell me please what the heck im doing wrong!!! USE tucoraco_tucora; $result = mysql_query('SHOW COLUMNS FROM users'); if (!$result) { die('Invalid query: ' . mysql_error()); } mysql_close($link); line 8 is the """USE tucoraco_tucora;""" line by the way this is my error......Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /home/tucoraco/public_html/connect.php on line 8
try this: $result = mysql_query('SHOW COLUMNS FROM users') or die('Invalid query: ' . mysql_error());
Hey, make sure you login to the MySQL server first. $connect=mysql_connect(); // php.net/mysql_connect PHP: Hope that helps Hit me up on AIM if you need help.