php-db | 2001072
Date: 07/24/01
- Next message: JD Daniels: "RE: [PHP-DB] 'htaccess" method : how to modify passwords from PHP scripts ?"
- Previous message: Thomas Bender: "[PHP-DB] Re: forming a multi-dimensional from a MYSQL DB QUERY"
- In reply to: Sharif Islam: "[PHP-DB] Dynamic Links"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: JD Daniels: "RE: [PHP-DB] 'htaccess" method : how to modify passwords from PHP scripts ?"
- Previous message: Thomas Bender: "[PHP-DB] Re: forming a multi-dimensional from a MYSQL DB QUERY"
- In reply to: Sharif Islam: "[PHP-DB] Dynamic Links"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

