Make your line look like this instead and it should work:
$sth = $db->prepare("SELECT Names FROM $table WHERE Name = ?");
In reply to Re: Re: Variable table
by Sifmole
in thread Failure plugging table into into query
by Raziel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |