To Do List Project: Part 5

The next step is to make the back end actually write some data to a database using PHP and MySQL. This is the UpdateStartTime.php file. The startSliceAjax function that communicates with this PHP is shown below, just slightly modified from yesterday’s version.

The PHP simply inserts the sent information into the database. Each ToDoSlice item has an index indicating the unique ID of the To Do item with which it is associated but not a unique ID of its own. When writing the start time of a new slice this isn’t a problem because the slice item is being created anew and doesn’t have to match anything.

We’re receiving the echoed text from the PHP and displaying it based on what data it contains.

This entry was posted in Software and tagged , , , , . Bookmark the permalink.

Leave a Reply