$sql = "Select * FROM ?";
Placeholders aren't supported in table and column names. See DBI "drop table" for a recent, related discussion.
Use $sql = "SELECT * FROM " . $dbh->quote_identifier($product); instead.
And I recommend the RaiseError option to connect, which automatically catches DB errors and prints useful error messages.
In reply to Re: checkbox and mysql select
by moritz
in thread checkbox and mysql select
by breal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |