Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 2292

Joomla! 5.x Coding • Error 500 incase of error of mysqli_query

$
0
0
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.

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



Viewing all articles
Browse latest Browse all 2292

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>