in reply to Problems inserting values in mysql database
How are the data values provided to the script (from form fields?) Does the script run from the command line (providing values for the data)? Does everything work when you omit $Data2 (That's what you seemed to be saying...) or is the INSERT the problem?
chas