Thanks for helping me see what I should have seen earlier. I have made this same mistake several times before. It's so easy to define a value and then later call the definition instead of the value.
PHP Code:
GetSQLValueString($imgID, "int"),
That was the fix....
The other line was also better placed at the top of the method. I replaced the line
PHP Code:
if (isset($_POST['MM_insert']) && !empty($_POST['MM_insert'])) {
with
PHP Code:
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "imageForm")) {
Now all is working just fine. My next job is to be able to delete multiple rows of a record using check boxes. That's going to also be interesting.
Thanks for your help.