SQL PHP HTML ASP JavaScript articles and free scripts to download
 

Deleting records in Ajax based paging script.

We have seen how Ajax can be used to create record breaking per page. Now we will add delete record facility to this Ajax code so users can click a delete button to remove that particular record.

You are advised to first read the basic Ajax based paging script before continuing with this tutorial.

From the student table you have seen each record has one unique id associated with each student. This unique ID we will pass to the PHP script using Ajax to delete that particular record. The passing of ID to the main PHP script is the only extra part added to the original Ajax based paging script.

We have added messaging part to the script so we can communicate better with the visitors. After deletion of record a message is returned by Server side script saying the status of the operation.

You can
download the full paging script with delete option here


hadi30-05-2011
how to delete a recorde with ajax
Post Comment This is for short comments only. Use the forum for more discussions.
Name
Email( not to be displayed)Privacy Policy
1+2=This is to prevent automatic submission by spammers. Please enter the result of the sum as asked


Join Our Email List
Email:  
For Email Newsletters you can trust
PHP Paging
PHP Sections