Re: SQL Quick problem

From: Date: Sat, 02 Dec 2000 21:33:28 +0000
Subject: Re: SQL Quick problem
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-4961@lists.php.net to get a copy of this message
$query = ("SELECT name, city FROM clubs;"); Try this. You forgot the ";" at the end of the query. Best regards, Fábio Ottolini ----- Original Message ----- From: Howard Sanders To: php-db@lists.php.net Sent: Saturday, December 02, 2000 7:08 PM Subject: [PHP-DB] SQL Quick problem Hi Could someone tell me what is wrong with $query = "SELECT name, city FROM clubs"; $result = mysql_query ($query) or die ("Query failed"); in a mySQL database query using PHP? I get a Parse error on the $query..... line Many thanks for your help Howard

« previous php.db (#4961) next »