plz help me here
View Single Post
01-15-2008, 03:58 PM
Join Date: Apr 2007
On the fourth line you are trying to get the value of
, but in your SQL query you only ask for the
and no other columns. Therefore,
will not be available to use! The same problem exists for the query assigned to
since no valid ID number is available.
It is good practice to add in some checks into your scripts so that you can recognise errors or problems. You should always check to see whether MySQL encountered any error when processing a query (
on error). Also you should check to see if the returned resuls are what you were looking for. For example, if no rows were returned you should output a message saying that nothing was returned, rather than just outputting nothing.
View Public Profile
Send a private message to Salathe
Visit Salathe's homepage!
Find More Posts by Salathe