hi all i have been inserting records in to database using php using the below program which is saved as "insert.php".
but it is displaying the following errorParse error: syntax error, unexpected '<' in C:\xampp\htdocs\insert1.php on line 18

This is because of the syntax error in the SQL query being generated. The best way to identify the error is to echo the query generated on the screen and you will be able to see the error.

Hope this helps.

Cheers,

~Maneet

pein87

23Aug2011 05:54

Re: error in inserting record

I think you need to get the basics of php before you even continue on any further with this project. Your doing so many things wrong its not even funny. Try http://www.w3schools.com/php/default.asp and once you understand the basics come back and do this basic project. Your programming foundation needs to be sturdy before you can attempt to create programs in any language.