I am using the DBI module and I have the name of my table contained in a file (a kind of .ini file). When I prepare my select statement, I get an error saying there is someting wrong with the FROM statement. Here is my code:
$sth = $db->prepare('SELECT Names FROM $table WHERE Name = ?'); $rv = $sth->execute($name);
The name of the table is correct in the variable $table, but I get an error. How can I get around this? I am using an Access database. Thanks for any help
In reply to Failure plugging table into into query by Raziel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |