www.webdeveloper.com
Results 1 to 2 of 2

Thread: dynamic selection of table in database

  1. #1
    Join Date
    Aug 2004
    Location
    Switzerland
    Posts
    1,101

    dynamic selection of table in database

    Hi !!!
    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 ?
    like :
    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 !

  2. #2
    Join Date
    Aug 2004
    Location
    Switzerland
    Posts
    1,101

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles