MySQL Forums
Forum List  »  Newbie

Re: how to check to see if a valid entry
Posted by: Aiby Mohan Das
Date: July 12, 2005 09:24AM

William Gray.. Please Check in PHP Manual to capture Errors

I am not working in PHP but I read!! its some thing like this

if ($result = @mysql_query($database["sql"])) // Error will be generated at this stage
{


}

else
{
print("Query error : " .mysql_errno() . "," .mysql_error() // Error Number Can be
}

Error Number can help you to detect the exact issue.. do the remady according to that

Options: ReplyQuote


Subject
Written By
Posted
Re: how to check to see if a valid entry
July 12, 2005 09:24AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.