View Single Post
Old 12-09-2012, 08:02 PM   PM User | #7
AndrewGSW
Senior Coder

 
Join Date: Apr 2011
Location: London, England
Posts: 2,120
Thanks: 15
Thanked 354 Times in 353 Posts
AndrewGSW will become famous soon enough
Why is the following
PHP Code:
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "imageForm")) { 
within the foreach loop? Surely it only needs to be checked once - unless you are expecting it to be an array(?) - that is, before the foreach.

Besides, you've already stored it as a variable $orderID. Once you've created this variable you should refer to it further down, and not keep reverting to the original posted version.
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS

Last edited by AndrewGSW; 12-09-2012 at 08:05 PM..
AndrewGSW is offline   Reply With Quote