[EMAIL PROTECTED] (Andy B) wrote in news:[EMAIL PROTECTED]:
> hi... > > is it better to give the mysql query string to a variable instead of > directly doing it with mysql_query? > > i.e. > $query="select * from table";//is this a better way? > $query=mysql_query("select * from table");//or is this way > //better? > mysql_query("select * from table");//not a good idea i dont think... It's useful for debugging - you can then just echo your query and in conjunction with mysql_error() determine where problems lie. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php