i started the application to build upon and came to an error, i tried to figure it out but through different procedure here is what i am calling:
print ("<tr><td><a href=morder.php");
print ("?p_id=");
print($row);
print(">");
print($row);
print("</a></td>");
it is calling the id from database, the link shows properly the values of the id as 1,2 etc, now when i clik the link the value is not passed as: NULL
this is te error
SELECT * FROM catalog WHERE id=
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in C:\wamp\www\PPP_Cart\morder.php on line 63
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in C:\wamp\www\PPP_Cart\morder.php on line 64
this is the code:
$query2="SELECT * FROM catalog WHERE id=$p_id";
echo "$query2";
plz help me thanks asap