RE: Catch Errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Is it possible to catch the type of error message returned form a
> mysql_query(); funtion
> 
> for example
> 
> if ($error == //duplicate row for table)
> {
>     echo "This row already exists in the table";
> }

Use mysql_error() and mysql_errno().

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux