Re: Is this possible?

From: Date: Wed, 11 Jun 2003 16:06:53 +0000
Subject: Re: Is this possible?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-151081@lists.php.net to get a copy of this message
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" <smarquez@marquez-design.com> To: "PHP eMail List" <php-general@lists.php.net> 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 >

« previous php.general (#151081) next »