|
Posted by user on 01/17/07 16:31
Thanks to both of you.
Kimmo Laine wrote:
> "user" <someone@someplace.org> wrote in message
> news:6ogrh.739663$QZ1.371372@bgtnsc04-news.ops.worldnet.att.net...
>
>>Could someone give me the quick difference betweeen the 2 error functions
>>and why one should use one or the other.
>>
>>
>>
>>if (!mysql_select_db($database, $connection))
>>showerror();
>>
>>$connection = mysql_connect('mysql_host', 'mysql_user', mysql_password')
>>or die('Could not connect: ' . mysql_error());
>
>
>
> mysql_error is a built-in function, comes in the package, and showerror is
> something used only in the php project you are working with. Ask the person
> who wrote the script, it's not a common php function. It's possible that it
> has more sophisticated error handling than what mysql_error provides.
>
[Back to original message]
|