View Single Post
Old 12-10-2012, 03:14 PM   PM User | #8
rgEffects
New Coder

 
Join Date: Aug 2012
Posts: 76
Thanks: 22
Thanked 0 Times in 0 Posts
rgEffects is an unknown quantity at this point
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.
rgEffects is offline   Reply With Quote