PHP mysql_errno() May 24, 2012 Pramod T P It returns the error number of the last MySQL operation Example <?php $conn = mysql_connect(“localhost”, “root”, “password”) or die(mysql_errno()); ?>