Skip to content
Advertisement

PHP MySQL Error echo insert into values printing on screen

I am learning PHP MYSql and faced an error while writing a marks submission program. When i run the program in chrome, the table is coming ok but neither the values are inserting in the MySQL table nor the redirection to different webpage taking place. You will understand it more clearly in the code and screen given below

JavaScript

Screen

[This is the screen in which i have not yet clicked submit button]

enter image description here

[Now i have Clicked Submit button but it only displays a line…no insertion…no redirection]

enter image description here Kindly help in overcoming this problem….

Advertisement

Answer

Just replace the insert query with this

JavaScript

replace col1, col2, col3… with your mysql table columns

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement