Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2002
    Location
    New Orleans
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how does one create a query from a hypertext link

    How do I create a query from a hypertext link using php?

  • #2
    New Coder
    Join Date
    Aug 2002
    Location
    Sydney, Australia
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Do you mean from the data in the query string?

    For example:

    < a href="foo.php?bah=blah&zoot=zog">foo</a>

    PHP Code:
    <?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'";

    ?>
    Last edited by freakysid; 08-31-2002 at 03:59 PM.


  •  

    Posting Permissions

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