assign mysql query to a variable first or not

From: Date: Wed, 07 Apr 2004 03:09:59 +0000
Subject: assign mysql query to a variable first or not
Groups: php.general 
Request: Send a blank email to php-general+get-182593@lists.php.net to get a copy of this message
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...

« previous php.general (#182593) next »