|
Thanks guys for your help, I do not seem to understand where I am going wrong with this! I have created the link to my description page and that works fine. Now I just can get my head round to creating a query or a function to the retrieve individual insect description! this is what my description page code looks like:
<?php
// Make a connection to the host server
mysql_connect("localhost","xxxxxx","xxxxxxxx") or die(mysql_error);
mysql_select_db("khumbu") or die(mysql_error());
/*create a new mysql query to select insects from a selected table*/
$insects = mysql_query ("SELECT insect_id, insect_slug, insect_com, insect_science,insect_des
FROM insects");
$row = $_Get['insect_id'];
echo "<table border ='1'";
echo "<h1>Insect Description</h1>";
echo "<tr><th>insect_des</th></tr>";
echo "<tr><td>";
echo $row['insect_des'];
echo "</td></tr>";
echo "</table>";
?>
I am getting an error that say undefined variable Get
Please help
|