I never saw this php syntax before. Maybe you try value= "<?php echo $itemID; ?>"
instead.
And if removing the foreign key constraint removes your problem, than you have a problem, because the foreign key constraint makes a lot of sense. You would not have any orphan records, would you?
And, as I said before, debug the content of your $sql variable before you submit it to mysql. I'm pretty sure there is no value for itemID in it.
smantscheff 265 Veteran Poster
smantscheff 265 Veteran Poster
smantscheff 265 Veteran Poster
smantscheff 265 Veteran Poster
shoestring commented: Very good suggestion. +1
smantscheff 265 Veteran Poster