20 lines
510 B
Plaintext
20 lines
510 B
Plaintext
:sig
|
|
String mysql_error(MySQL* m)
|
|
|
|
:params
|
|
m : pointer to a MySQL connection struct
|
|
return value : MySQL error message (if present, otherwise empty string)
|
|
|
|
:see
|
|
>mysql
|
|
|
|
:content
|
|
Returns the last error message associated with the given MySQL connection.
|
|
|
|
If there is no current error, the result is an empty string.
|
|
|
|
Related:
|
|
|
|
- PHP: modern database access through `mysqli_*` or PDO methods rather than the old `mysql_*` family
|
|
- JavaScript / Node.js: clients such as `mysql2`, query builders, or ORM adapters
|