Go Back   CodingForums.com > :: Server side development > MySQL

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-30-2002, 09:23 AM   PM User | #1
sean paul
New to the CF scene

 
Join Date: Aug 2002
Location: New Orleans
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
sean paul is an unknown quantity at this point
how does one create a query from a hypertext link

How do I create a query from a hypertext link using php?
sean paul is offline   Reply With Quote
Old 08-31-2002, 02:55 PM   PM User | #2
freakysid
New Coder

 
Join Date: Aug 2002
Location: Sydney, Australia
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
freakysid is an unknown quantity at this point
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 02:59 PM..
freakysid is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:04 AM.


Advertisement
Log in to turn off these ads.