Hello,
This code of mine is not working and I am stuck with my pages not displaying correctly. Can someone please see what I am doing wrong? It works on my development PC though.
My control needs to go into the If part and not to the Else part but somehow it is going to the else part and the query is failing.
<?php
if (isset($SERVER['QUERY_STRING'])==false)
{
echo"No object selected.";
echo "Please select an object first to view details.";
}
else
{
$id = $GET['id'];
$query="SELECT * FROM t_books WHERE books_id = $id";
$result=mysql_query($query) or die('Error, Select query failed');
$num=mysql_numrows($result);
}
Regards
iON