Click here to Skip to main content
15,915,164 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In php the inserted values are displayed in the data table. while the page get refresh it automatically insert one row, once again refreshing another row is inserted. How can i solve this problem. anyone help me..
Posted
Comments
ZurdoDev 20-Mar-12 15:50pm    
We need to see the code.
solutions@ashish 21-Mar-12 9:33am    
Use post method or use form As I understood, You have written code in raw php file so each time when page refresh the values save into database table and display into html table

1 solution

Hi,

Remove the code which inserts the data from top of the page and move it to a seperate code only file which can be the action file which takes care of the insertion process.

Thanks

Anand Ayyappan
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900