About 20,400,000 results
Open links in new tab
  1. PHP mysqli error() Function - W3Schools

    The error / mysqli_error() function returns the last error description for the most recent function call, if any.

  2. Handling MySQL errors in PHP - Stack Overflow

    Aug 11, 2013 · You can use: if (mysqli_error($conn)) { $error = 'Oops something went wrong!'; } echo $error; The $conn stands for the database connection through which the query was …

  3. PHP: mysqli::$error - Manual

    In order to get the right error-message you have to write: printf("Errormessage: %s\n", $mysqli->error); $mysqli->query("ROLLBACK;") I had to set mysqli_report(MYSQLI_REPORT_ALL) at …

  4. PHP | mysqli_error() Function - GeeksforGeeks

    Apr 23, 2020 · The mysqli_error() function is used to return the error in the most recent MySQL function call that failed. If there are multiple MySQL function calls, the error in the last …

  5. Handling MySQL errors - The complete PHP tutorial

    Try making various errors in the SQL query and see the message that MySQL returns through the mysql_error() function, to see how it responds. This will help you identify SQL errors better in …

  6. PHP to display database query errors - Amazing Algorithms

    This code demonstrates how to handle database query errors in PHP using try-catch blocks. Execute the query using the mysqli_query() function. Check for errors using the !$result …

  7. PHP mysql query: sql error printing - Plus2net

    To get the error message we have to use another function mysqli_error() to print the error message returned by MySQL database after executing the query. Here it is how to print the …

  8. mysql - How to display query error in php - Stack Overflow

    Apr 10, 2017 · // Perform a query, check for error if (!mysqli_query($con,"UPDATE table SET id = 1 WHERE id = 3")) { echo("Error description: " . mysqli_error($con)); } mysqli_close($con);

  9. How do I display a MySQL error in PHP for a long query that

    To display a MySQL error in PHP for a long query that depends on user input, you can use the mysqli_error() function. This function returns a string description of the last error. Here's an …

  10. How to Display Errors Using MySQLi Error Functions

    Feb 2, 2024 · In this tutorial, we will learn about the following PHP MySQLi error functions: All these functions can be used in object-oriented style and procedural style. Let’s understand …

  11. Some results have been removed
Refresh