Developed ToDo List in PHP using Ajax 4

Author:

Webslesson

Keywords:

php to do,to do list php project,to do list using PHP and Mysql,php to-do,to do list using ajax,to-do,to do list jquery,tutorials,to do list ajax php,to do,php checklist script,web development,pdo,learn php,list,php to do list,php to list script,php to do list ajax,php mysql to do list,to do list php tutorials,to do list php,open source todo list php,php to-do list crud app

Subtitles:
hello friends this is last part of developing of to-do list application in PHP using Ajax and in this part we will discuss how to remove to-do lists from web page in previous part we have seen how to check to do list by using PHP with Ajax now we have process for a delete of to-do list for this we have go to index page and here we have moved to write jQuery code here we have right dollar document selector with on method and under this we have right click event with badge class so when we have click on cross sign this block of code will execute under this we have right task list ID variable as equal to dollar this with data method and under this we have right ID it will fetch ID attribute value and store into task list ID variable now we have start right Ajax requests so here in first option we have right URL option set to delete task dot PHP it will send request to this file in second option we have right method and here we have used post method for send data to server in third option we have right data and in this option we can define which data we want sent to server so here we have defined task list ID variable lastly we have rightt success callback function this function has been called if request completed successfully and it will receive data from server under this function we have right dollar with anchor tag ID list group item with task list ID variable with fade-out method and under this we have right slow this code will remove whole row a batch on which we have clicked now we have moved to delete tasks PHP file and here first we want to make database connection so here we have right include statement with database connection dot PHP file it will make database connection you after making database connection we have write if statement and under condition we have write dollar post task list ID variable if this condition true then it will execute if block of code under this block we have right dollar data variable is equal to array in a ray first key we have right double : task list ID with value like dollar post task list ID variable here we have store data in a ray format in local variable now we have right dollar query variable is equal to delete from task list table where task list ID is equal to double : task list ID below this delete query we have rightt dollars statement variable as equal to dollar connect variable with prepare statement and under this we have write dollar query variable this method will make delete query for execution now we have right if statement and under condition we have right dollars statement variable with execute method under this method we have right dollar data variable if delete query successfully execute then it will execute if block of code under this block we have right echo statement with done it will send response to Ajax request so here our code is ready now we have check output in browser friends first we have refresh webpage after refresh of webpage here we want to check remove or delete of to-do list from webpage for this we have click on cross sign after click on this row cross sign that row has been removed from web page now we want to check that content has been also delete from my SQL table also so we have refresh page so here we cannot see deleted to-do list on webpage that means it has been also removed from database also so here we have make single page to-do list application in PHP using Ajax in this to-do list application user can add their to-do list content after this user can check their to-do lists and they can also remove or delete to-do lists from web page and database also using PHP script with Ajax jQuery if you have any query or input regarding this video tutorial please comment your query or input in comment box or if you like this video tutorial please share with your friends or even you can also share on social media also if you want to get more update regarding our video tutorial please subscribe our YouTube channel forget more update regarding release of future video lastly keep watching our YouTube channel thanks for watching this video tutorial

Loading