![]() |
error in inserting record
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 error Parse error: syntax error, unexpected '<' in C:\xampp\htdocs\insert1.php on line 18 dont no what went wrong. can u tell me how to solve it..... PHP Code:
|
Re: error in inserting record
Hi,
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 |
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.
|
| All times are GMT +5.5. The time now is 08:31. |