Can someone explain the difference between mysql_errno and mysql_error?
mysql_errno returns the error code, and mysql_error returns the error text ...
Are you saying php functions?
mysql_errno returns the error number,
and mysql_error returns the error text.
You can easily find the difference at http://www.php.net/manual/en/function.mysql-errno.php
string mysql_error ([ resource $link_identifier ] )
MySQL. , MySQL, . mysql_error() . , MySQL ( mysql_error() mysql_errno()), , , , MySQL.
mysql_errno -
mysql_errno
mysql_error - MySQL
mysql_errno - MySQL
I would like to add to the topic that the MySQL-specific error numbers returned mysql_errno()are not the numbers of SQL errors that can be expected, they differ from the SQLSTATE values (returned by the property mysql_sqlstate()or sqlstateinside mysqli_sql_exception). You can find a complete list of error messages and error numbers for your MySQL distribution here (in addition to the file Docs/mysqld_error.txt).
mysql_errno()
mysql_sqlstate()
sqlstate
mysqli_sql_exception
Docs/mysqld_error.txt
Source: MySQL Reference Guide
Source: https://habr.com/ru/post/1755701/More articles:Как отправить Jsp в качестве ответа на вызов ajax - javaCustom json in Spring - javaTime over a specific time interval - javaHow to resume adding data to a file at a specific position? (std :: ostream, streampos, tellp / seekp) - c ++Convert JSON string to "complex" class? - jsonHow to debug ExtJS in IE8 - debuggingHow to change .doc or .docx file in php - phpHow to preload a large image? - javascriptParallel programming using python multiprocessing and process processing - pythonhow to use the QT graphic view for drawing - qtAll Articles