do something like this:
$color="blue"; SELECT blah FROM '$color'
Because when I try it, it doesn't seem to work.. and if I do
SELECT blah FROM blue
then it works..
try taking out the single quotes around $color, like this:
SELECT blah FROM $color
that should work
woohoo! thanks!
Correct. This should work.
If you put quotes (single or double) around a string, then that string is interpretted as a constant string as opposed to a table field.
-Rich