Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はすでに多くのコードを書いていますが、今は疑問を持ち始めています-次のようなステートメントはどれほど重要ですか:
or die(mysql_error());
私のすべてのクエリで?
今はほとんどどこにもありません...
ページの実行がすぐに停止するため、本番環境ではこのエラーを使用しないことをお勧めします。ユーザーにとってより優雅な終了が必要です。
したがって、この特定のケースでは、次のことができます
or handle_error();
ユーザーのために正常に終了するために実装するメソッドはどこhandle_error()にありますか。
handle_error()