📄 errhandler.php
字号:
<html>
<body>
<br><br>Lets try to select a Database that does not exist.<br><br>
<?php
$connect= mysql_connect("localhost","root","");
mysql_select_db("somerongdatabase");
echo " Error Number : ". mysql_errno(). " \n<br>Error Message :".mysql_error(). "\n<br>";
?>
<br><br>Lets extract rows from a Table that does not exist.<br><br>
<?php
$sqlquery = mysql_query("SELECT * FROM somerongtable");
echo " Error Number : ".mysql_errno()."\n<BR>";
echo " Error Message : ".mysql_error()."\n<BR>";
?>
<br><br>Lets select a database first and then try to extract rows from a Table that does not exist.<br><br>
<?php
mysql_select_db("books")
or die("even this database does not exist");
$sqlquery = mysql_query("SELECT * FROM somerongtable");
echo " Error Number : ". mysql_errno(). "\n<br>";
echo " Error Message : ". mysql_error(). "\n<br>";
?>
</html>
</body>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -