Re: mysql_commect or die

2006-03-11 Thread Peter Brawley
fbsd_user wrote: mysql_connect("localhost","root") or die("Unable to connect to MySQL server"); $err mysql_connect("localhost","root"); if ($err != 0) { Under what conditions will the die clause be taken. What is in $err if there is a error? Are these 2 statements basically d

RE: mysql_commect or die

2006-03-11 Thread Ing. Edwin Cruz
that conditions. And yes! Basically both are doing the same thing but if the conextion is succesfully stablised it will have a link identifier of the conection. Regards! Edwin. -Mensaje original- De: fbsd_user [mailto:[EMAIL PROTECTED] Enviado el: Sábado, 11 de Marzo de 2006 10:56 a.

mysql_commect or die

2006-03-11 Thread fbsd_user
mysql_connect("localhost","root") or die("Unable to connect to MySQL server"); $err mysql_connect("localhost","root"); if ($err != 0) { Under what conditions will the die clause be taken. What is in $err if there is a error? Are these 2 statements basically doing the same thin