This code below worked on one host and now it does not work on another host. Not sure of the parameters regarding php and mysql versions or anything else. Anyone have an idea why this works on one site and not on another, all other things are totally equal.
This shows the list of obituaries
echo "<a href=\showobit.php?id=$obit_data[obit_id]\>" . $obit_data['first_name'] . " " . $obit_data['last_name'] . " " . $obit_data['dod'] . "</a>" . "<br/>";
This shows the individual obituary details once the user clicks on an obit in the above page listing.
$the_id = $_GET['id'];
$result = mysql_query("select * from obits where obit_id = '$the_id'")
or die(mysql_error());
while($obit_data=mysql_fetch_array($result)){
echo $obit_data['first_name'];
echo $obit_data['last_name'];
echo $obit_data['dod'];
echo $obit_data['dob'];
echo $obit_data['obit_text'];
echo "<br/><br/>";
}
?>
any ideas? Thanks a lot.