How to get a more descriptive error message

3.9.23. How to get a more descriptive error message

If you get an error, but you have no idea what is happening, you could try to narrow it down in the code, if you feel comfortable with PHP. Then, after you found the offending line, you should insert the line

print (mysql_error());

immediately after it. This will give a more descriptive message of the error and hopefully lead you to a solution. We already used this trick in Section 3.9.2. See also Warning: mysql fetch row: supplied argument is not a valid MySQL result resource and submit news problem.


Site Info v2.2.2

Last SeenLast Seen
  • elnegro
  • FireATST
Server TrafficServer Traffic
  • Total: 376,953,411
  • Today: 15,178
Server InfoServer Info
  • Feb 18, 2019
  • 05:39 am CET