Okay.. I hope I did this correctly. I wasnt sure if you wanted the code after the open <body> tag or after the Close</body> tag. I am using a .dwt.php template so I was a bit puzzled.
Anyhow, I added it after the </html> tag and got the following results after my insert record. The insert wrote to the database correctly and returned the following at the bottom of the page. I presume this is what you were looking for.
SQL: SELECT ItemID, ItemName, ItemShortDesc, ItemLongDesc, ItemPrice, ItemSKU, ItemThumb, ItemImage, ItemWeight FROM items WHERE ItemID = -1 OR ( -1= -1 AND ItemID= -1)