Re: Dynamic Links

From: Date: Tue, 24 Jul 2001 17:12:54 +0000
Subject: Re: Dynamic Links
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-10717@lists.php.net to get a copy of this message
In view.php, you'd do something like this: $qry = "SELECT * FROM inv_table WHERE machine_name='$machine_name'"; Execute the query, display the results. $machine_name will contain the value of the string passed in through your link (eg. href='view.php?machine_name=lab01' - $machine_name in view.php would then have the value of "lab01"). Sharif Islam wrote: > I want to do a browse on the machine name. Then I want to click on that > particuluar machine and get rest of the info about that. > > print "<a > href=\view.php?machine_name=$a_row->machine_name\>$a_row->machine_name</a> > <br>\n"; -- Chris Hobbs Silver Valley Unified School District Head geek: Technology Services Coordinator webmaster: http://www.silvervalley.k12.ca.us/~chobbs/ postmaster: chobbs@silvervalley.k12.ca.us

« previous php.db (#10717) next »