Table name is variable
| From: | Dani Matielo | Date: | Fri, 14 Mar 2003 03:45:46 +0000 |
| Subject: | Table name is variable | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-26373@lists.php.net to get a copy of this message | ||
Hello.
I am a begginer in PHP programming and I would appreciate any help.
My problem is the following: I need to make the name of my table a variable.
My thought was simple:
$imprimir = mysql_query("SELECT id, data FROM $tabela",$db);
but it doesnt work... how should i do it?
Thank you in advance,
Dani