In your html you use position:absolute; but never position it. The onMouseOver may never occur since your image looks like it covers the div. (may want to force image to confine itself to the div.
if($p512_5_2_image != NULL) is curious because if it is NULL you get an error and you have no instructions for it.
I find it hard to understand what your trying to do. In your last line you use words you do not define:
what is "field" and "item" in " in which field the item is placed"
and what do you mean by "field items location"
that you need to update in mysql. Which you just bring up now!
Please just use words to tell us what your trying to do or give us complete code or an address of your site.
Last edited by sunfighter; 03-18-2013 at 05:14 PM..
Reason: added last line