I\'m writing a php app to access a MySQL database, and on a tutorial, it says something of the form
mysql_connect($host, $user, $pass) or die(\"could not con
If the first statement returns true, then the entire statement must be true therefore the second part is never executed.
true
For example:
$x = 5; true or $x++; echo $x; // 5 false or $x++; echo $x; // 6
Therefore, if your query is unsuccessful, it will evaluate the die() statement and end the script.
die()