English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have a php script which connects to a mysql database. The script works fine regardless of errors such as Notice: Undefined Index ..... on line 56 and others. Is there a way to remove the showing of any php errors from the pages?

2007-12-27 23:48:32 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

2 answers

Undefined index issues can be fixed using isset() or array_key_exists() to detect the existence of the element you are looking for. If it does not exist, give it a default value.

2007-12-28 02:29:46 · answer #1 · answered by Agent Feyd 4 · 0 0

I don't want to be pedantic, but programming is not an "approximate" science!
The code must be correct, full stop...
If you have errors, to remove them, you have to...
well...
correct them!

2007-12-28 01:15:16 · answer #2 · answered by just "JR" 7 · 0 1

fedest.com, questions and answers