View Full Version : how does one create a query from a hypertext link
sean paul
08-30-2002, 09:23 AM
How do I create a query from a hypertext link using php?
freakysid
08-31-2002, 02:55 PM
Do you mean from the data in the query string?
For example:
< a href="foo.php?bah=blah&zoot=zog">foo</a>
<?php
$bah = $_GET["bah"]; // value of $bah sould be"blah"
$zoot = $_GET["zoot"]; // value of $zoot should be "zog"
$sql = "SELECT * from $bah WHERE zoot='$zoot'";
?>
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.