php-db | 2001072

Re: [PHP-DB] Dynamic Links From: Chris Hobbs (chobbs <email protected>)
Date: 07/24/01

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 <email protected>

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>