$ok = mysql_query("INSERT INTO table(field) VALUE('asdf')");
if (!$ok)
{
echo "error!";
}
else
{
echo "good!";
}
"Clint Tredway" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> is there a way to tell if an insert failed while a in a loop. I tried
this: $query = "my query";
> if (!$query)
> {
> logic here
> }
> but this is not working... is this even possible?
>
> thanks!
> Clint
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]