I work with PDO in PHP.
Now I wonder if you can catch any global error and show.
With global, I mean, if any $sql=$connect->prepare() fails, then the echo is out
"Something went wrong:" . the_error
Or do you need to always do this every time every $ sql?
Karem source share