The following code successfully inserts into a MySQL DB on PHP 4.x, however, I am currently running PHP 5.1.2 and it is resorting to the ELSE statement and not inserting into the database. Does anyone have any thoughts on what could be wrong, or what I may need to change in my PHP.ini file? Thank you in advance. [/********************************************** Sets passed values to local variables to be used. **********************************************/ $POVendorName=$HTTP_POST_VARS['POVendorName']; $PONum=$HTTP_POST_VARS['PONum']; $POAmount=$HTTP_POST_VARS['POAmount']; $POVendorPhone=$HTTP_POST_VARS['POVendorPhone']; $POVendorDesc=$HTTP_POST_VARS['POVendorDesc']; $POExpDate=$HTTP_POST_VARS['POExpDate']; /********************************************* Insert new category information into the category table. Checks for errors during the insert. *********************************************/ echo"$POVendorName $PONum $ POAmount $POVendorPhone POVendorDesc POExpDate"; mysql_select_db('PO'); $query = "INSERT INTO PO (POVendorName, PONum, POAmount, POVendorPhone, POVendorDesc, POExpDate) VALUES ('$POVendorName', '$PONum', '$POAmount', '$POVendorPhone', '$POVendorDesc', '$POExpDate')"; $result = mysql_query($query); if ($result) { echo "<span class='headtitle'>Add Blanket PO Results <br /><br /></span>"; echo mysql_affected_rows(). ' category sucessfully inserted into the database.'; } else { echo "Add category did not work properly, please try again later."; } require('footer.inc'); ?>]