...

View Full Version : how does one create a query from a hypertext link



sean paul
08-30-2002, 10:23 AM
How do I create a query from a hypertext link using php?

freakysid
08-31-2002, 03: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'";

?>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum