Developed ToDo List in PHP using Ajax 3

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 third part of developing of to-do list application in by using Ajax and here we will discuss how to check to-do lists in previous part we have already discussed how to add new item in to-do list by using Ajax with Ajax now we have moved to check to-do lists for this we have go to index page and here we have moved to write jQuery code so here we have write dollar with document selector with on method and under this we have right-click event with list group item class so when we have click on particular to-do list then this block of code will execute under this block we have right task list ID variable is equal to dollar this with data method and under this we have right ID it will fetch value from ID attribute and store under this task list ID variable now we have moved to right ajax.request and in this we have right first option URL set to update task dot PHP it will send request to this file in second option we have right method and here we have right post so it will use post method for send data to server in third option we have right data option and here we can define which data we want send to server and here we have defined task list ID variable lastly we have rightt success callback this function has been called if Ajax request completed successfully and it will receive data from server under the success function we have right dollar with anchor tag ID list group item with value of task list ID with CSS method you and under this method we have set text-decoration property has been set to line through it will draw a line on text that means that to-do-list has been checked now we have moved to write update task dot PHP file and here first we want to make database connection so here we have write include statement with database connection dot PHP file it will make database connection on webpage below this 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 status with value like yes in a race second key we have right double : task list ID with value like dollar post task list ID variable so here we have store data in array format in local variable now we have right dollar query variable as equal to update task list table said task status is equal to double : task status where task list ID is equal to double : task list ID below this update query we have rightt dollars statement variable as equal to dollar connect variable with preparer statement and under this we have right dollar query variable this method will process update query for execution and for execute query we have right if statement and under condition we have right dollars statement variable with execute method and under this we have right dollar data variable if update query successfully run then it will execute if block of code and under this we have right echo statement with done it will send response to Ajax so here our code is ready now we have check output in browser friends first we have refresh webpage after refresh webpage here we want to checked particular to-do list task has been done so suppose this to-do list task has been done so we want to check this to-do list task so we have click on this to-do list task after click on to-do lists then task row of text has been checked with line so here we can see this to-do list has been checked with line so here our code is working in next part we will discuss how to remove particular to-do list from web page by using PHP with Ajax 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