Ok, this probably has a really obvious answer, but for the life of me, I can't it.
I have a page that I call with to parameters (race and table) and I need to use these in a query. I have this:
$query = "SELECT * FROM '$table' WHERE race='$race' ORDER BY itemName ASC"
the race='$race' bit works perfectly, I have it on a few other pages, but the SELECT * FROM '$table' fails. Can I actually use it like this?
I have a page that I call with to parameters (race and table) and I need to use these in a query. I have this:
$query = "SELECT * FROM '$table' WHERE race='$race' ORDER BY itemName ASC"
the race='$race' bit works perfectly, I have it on a few other pages, but the SELECT * FROM '$table' fails. Can I actually use it like this?