dynamic selection of table in database
I've a quick question, I don't know if it's possible :
can we select dynamically a table in a database ?
I mean : let's say if you have a specific parameter, you want table1 in the database. If you have parameter 2, you want table 2, etc...
Now, is there a way to put a variable in the databse call ?
SELECT id FROM $thevariablehere WHERE...
and then, specify this variable ?
I'm just wondering if that one is possible... ( not the syntax I wrote above. I've tested it, and no, it doesn't work... )
Thanks for your help !
it's alright, I found out by myself
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)