Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi everybody,

I have a page to insert data to database (MySql). I would like when I write data in TextBox it value is inserted into the database (This is OK) and show in one table (This is OK too).

My problem is this:
When I click on button to insert, I see the data in the page, but when I insert second record, the first record is cleaning in page and show record two.
I would like when I insert second record it is shown in the page and below the first record.

How can I do this?
Posted
Updated 13-Nov-11 20:39pm
v2
Comments
thatraja 14-Nov-11 2:59am    
Your question confusing little bit. Are you showing records in Grid?
Uday P.Singh 14-Nov-11 11:02am    
PHP doesn't have Grid control like Asp.net unless you are using any third party.

I have two solutions:
1, After data is inserted, read it back from database and write on page. Or,
2, Use Ajax or jQuery to append data on page.
 
Share this answer
 
Comments
synctor 14-Nov-11 3:29am    
please send me a example
Thank you for ur reply
Bun Leap_kh 14-Nov-11 3:37am    
I am sorry, I don't have example.
@synctor: could you please post you code for analysis.
 
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