I need help in using a variable passed in a hyperlink query string to do PHP query of a MySQL database. I want use the variable to query the database and return the unique row field data to display in a table
The hyperlink is:
http://www.site.com/bios.php?pc=ab
After connecting to the database sucessfully do query like this maybe? need help writing code:need help setting guery string into variable
$per = $_GET['pc'];
Need help with query statement
$query = "select name,title,bio,picture from the_table where per=ab";
then use info to print table:
{
Print "<tr><td class='ParaText' align='left' valign='top'>name</td><td class='ParaText'>".$name."</td><td class='ParaText' align='left' valign='top'>" .$bio."</td></tr>";
}