A Database Error Occurred Error Number: 1064 You have an error in your sql Syntax; check the manual that corresponds to your MysqL server version for the right Syntax to use near 'order by rand()' at line 1
与我的网站的默认404错误页面?
show_404();
当你想要它时,这将显示404.在您的情况下,只是捕获您的错误并使用此功能.
或者您可以设置自定义错误处理程序,记录它并显示404,我想不建议这样做.