Hello,
I am using iFrame for custom coded pages in Joomla 5. When the page execute mysqli_query and there is some error like duplicate entry it shows me error 500 page. When I turn debugging on it shows mysqli_sql_exception and valide issue for mysqli_error. Is it possible to turn showing error 500 page off? I want to be able to display error on page using mysqli_error.
I am using iFrame for custom coded pages in Joomla 5. When the page execute mysqli_query and there is some error like duplicate entry it shows me error 500 page. When I turn debugging on it shows mysqli_sql_exception and valide issue for mysqli_error. Is it possible to turn showing error 500 page off? I want to be able to display error on page using mysqli_error.
Code:
mysqli_query($conn,$sql2);$message = mysqli_error($conn);if ($message) {echo "Error:" . $message;}else{echo "Done";}
Statistics: Posted by Poutnik81 — Mon Jan 29, 2024 1:22 pm