Hey, Whats the problem with this "<a href="index.php?tablename=table">table</a>" ? its a perfectly legal bit of HTML...wheres your doubt?
in index.php just get the variable like this $blah=$_GET['tablename']; then run $blah in your select query..... Either this is just too simple or i dont really understand what you are trying to do... Cheers, -Ryan ----- Original Message ----- From: "Steve Marquez" <[EMAIL PROTECTED]> To: "PHP eMail List" <[EMAIL PROTECTED]> Sent: Wednesday, June 11, 2003 3:59 PM Subject: [PHP] Is this possible? > Hello PHP List, > > I would like to use links such as: > > <a href="index.php?tablename=table">table</a> > > The resulting page would have a line on it like such: > > $query = "SELECT * FROM $table"; > > Is this possible? If so, is there maybe a better way to do this? > > Also, is it possible to show the names of the tables in PHP page? > > Thanks, > > -Steve Marquez > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php