| List: | General Discussion | « Previous MessageNext Message » | |
| From: | fbsd_user | Date: | March 11 2006 4:56pm |
| Subject: | mysql_commect or die | ||
| View as plain text | |||
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 thing?
| Thread | ||
|---|---|---|
| • mysql_commect or die | fbsd_user | 11 Mar |
| • RE: mysql_commect or die | Ing. Edwin Cruz | 11 Mar |
| • Re: mysql_commect or die | Peter Brawley | 11 Mar |
