This bit of code is not working for me. My list.php shows all the members. If I click on edit for a row I goto my update.php which shows 'update.php?id=# and I have a small piece of code to display the number which is always the correct one. But I cannot display the persons info. Here is what I have
<?
$id = $_GET['id'];
echo "<print>" .$id."</print>";
mysql_query("SET NAMES utf8");
mysql_query("SET CHARACTER_SET utf8");
header('Content-type: text/html;charset=utf-8');
$order = 'SELECT * FROM `person` WHERE `PersonID` = $id';
$result = mysql_query($order);
?>
It should display the persons info in my table as it dose in my list.php but nothing shows up? If I replace 'PersonID' = 1234
for example, I then get some info. Why is the code not using $id
and placing it after 'PersonID' = .
?