The above example would produce the following output:
?php mysql_connect( "marliesle"); echo mysql_errno() .": ".mysql_error(). "br"; mysql_select_db("nonexistentdb"); echo mysql_errno() .": ".mysql_error(). "br"; $conn = mysql_query("SELECT * FROM nonexistenttable"); echo mysql_errno() .": ".mysql_error(). "br";?