Currently I am trying to create a form which
(1)checks whether a key field ID has been entered
(2) If it is, then retrieves the record for edit mode
(3) if not uses the form for insert mode.
My problem is that if there are null values in fields, then when I do:
$row = mysql_fetch_array($result);
Then the resulting associative array does not contain the index of the field with NULL value so that I get the error:
Warning: Undefined index: app_file_css in c:\indigoperl\htdocs\admin_app_update.php on line 72
How do I resolve this problem. Can I:
(1)is there a PERL like eval statement so I could capture the error and deal with it?
(2)is there a way of forcing the NULL row still to have an associative array element for it?
Any ideas very welcome.
P.S: code attached