SQL Select?
| From: | Grant | Date: | Sat, 24 Mar 2001 20:55:13 +0000 |
| Subject: | SQL Select? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-7765@lists.php.net to get a copy of this message | ||
Hello all
Is there any way of using a string in an SQL query instead of using the
table name. Something along the lines of
$result=mysql_query("SELECT * FROM $tablename",$db);
this doesnt work it come up with a parse error
thankyou
Grant