List:General Discussion« Previous MessageNext Message »
From:fbsd_user Date:March 11 2006 4:56pm
Subject:mysql_commect or die
View as plain text  
        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 thing?

mysql_commect or diefbsd_user11 Mar
  • RE: mysql_commect or dieIng. Edwin Cruz11 Mar
  • Re: mysql_commect or diePeter Brawley11 Mar