RE: [PHP-DB] Table name is variable

2003-03-13 Thread John W. Holmes
> 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? Just l

[PHP-DB] Table name is variable

2003-03-13 Thread Dani Matielo
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 ad