|
Posted by Kimmo Laine on 01/17/07 06:41
"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.
--
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
http://outolempi.net/ahdistus/ - Satunnaisesti pδivittyvδ nettisarjis
spam@outolempi.net | rot13(xvzzb@bhgbyrzcv.arg)
[Back to original message]
|