Re: how to ?
| From: | _lallous | Date: | Tue, 11 Sep 2001 13:42:30 +0000 |
| Subject: | Re: how to ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-66921@lists.php.net to get a copy of this message | ||
$ok = mysql_query("INSERT INTO table(field) VALUE('asdf')");
if (!$ok)
{
echo "error!";
}
else
{
echo "good!";
}
"Clint Tredway" <clint@factorxsoftware.com> wrote in message
news:200109110840.AA560136562@dfwwebsolutions.com...
> 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