t;Query executed but no rows were affected";
exit;
}
- Kevin
- Original Message -
From: "Chris Shiflett" <[EMAIL PROTECTED]>
To: "Sunfire" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, February 04, 2003 11:58 AM
Subject: Re: [PHP] testing if a qu
--- Sunfire <[EMAIL PROTECTED]> wrote:
> how would you use an if..else statement to test a
> query in mysql to see if it was successfull or not?
Depends on what database server you are using. Here it is
in MySQL:
if (mysql_query($sql))
{
echo "Success";
}
else
{
echo "Failure";
}
Chris
--
2 matches
Mail list logo