Posted by william.clarke@gmail.com on 03/25/06 01:24
For debugging purposes, storing the query in a variable (which you will
use as bobzimuta said eg. mysql_query( $query, $connection ))and
echoing it to the screen will often show up sql syntax errors.