├── README.md ├── add-list.php ├── add-task.php ├── config └── constants.php ├── css └── style.css ├── delete-list.php ├── delete-task.php ├── index.php ├── list-task.php ├── manage-list.php ├── references.txt ├── task_manager_db.zip ├── update-list.php └── update-task.php /README.md: -------------------------------------------------------------------------------- 1 | # Task Manager with PHP and MySQL 2 | Simple Task Manager web app with PHP and MySQL. 3 | 4 | [Complete TASK MANAGER Tutorial Playlist](https://www.youtube.com/watch?v=1rl36zxqZZw&list=PLBLPjjQlnVXXygeLVmd9mGNtgrHaBOFos) 5 | 6 | 7 | 8 | ## Support Developer 9 | 1. Subscribe & Share my YouTube Channel - https://bit.ly/vijay-thapa-online-courses 10 | 2. Add a Star 🌟 to this 👆 Repository 11 | 12 | ## Donate 13 | 14 | **[PayPal](https://bit.ly/support-vijay-thapa)** 15 | 16 | **[Buy me a Coffee ☕️](https://www.buymeacoffee.com/vijaythapa)** 17 | 18 | **Donate by wire transfer:** E-Mail at *donate@vijaythapa.com* for wire transfer details. 19 | 20 | 21 | ## Technologies Used 22 | 1. Core PHP Programming Language (Procedural Programming) 23 | 2. MySQL Database 24 | 3. HTML 25 | 4. CSS 26 | 27 | ## How to Download and Run on your PC? 28 | 29 | ### Pre-Requisites: 30 | 31 | 1. Download and Install XAMPP 32 | 33 | [Click Here to Download](https://www.apachefriends.org/index.html) 34 | 35 | 2. Install any Text Editor (Sublime Text or Visual Studio Code or Atom or Brackets) 36 | 37 | ### Installation 38 | 39 | 1. Download as as Zip or Clone this project 40 | 2. Move this project to Root Directory 41 | ``` 42 | Local Disc C: -> xampp -> htdocs -> 'this project' 43 | ``` 44 | *Local Disk C is the location where xampp was installed* 45 | 46 | 3. Open XAMPP Control Panel and Start 'Apache' and 'MySQL' 47 | 48 | 4. Import Database 49 | 50 | a. Open 'phpmyadmin' in your browser 51 | b. Create a Database 52 | c. Import the SQL file provided with this project 53 | 54 | 5. Make Changes to settings 55 | 56 | Go to 'config' folder and Open 'constants.php' file. Then make changes on following constants 57 | ```php 58 | 71 | ``` 72 | 73 | 6. Now, Open the project in your browser. It should run perfectly. 74 | 75 | ## For Sponsor or Projects Enquiry 76 | 1. Email - hi@vijaythapa.com 77 | 78 | ## Follow Me on 79 | 1. LinkedIn - [vijaythapa](https://www.linkedin.com/in/vijaythapa/ "Vijay Thapa on LinkedIn") 80 | 2. Instagram - [@vijaythapa.code](https://www.instagram/vijaythapa.code/ "Vijay Thapa on Instagram") 81 | 3. Facebook - [@thevijaythapa](https://www.facebook.com/thevijaythapa/ "Vijay Thapa on Facebook") 82 | 5. Twitter - [@thevijaythapa](https://www.twitter.com/thevijaythapa "Vijay Thapa on Twitter") 83 | -------------------------------------------------------------------------------- /add-list.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | Task Manager with PHP and MySQL 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 |

TASK MANAGER

16 | 17 | Home 18 | Manage Lists 19 | 20 | 21 |

Add List Page

22 | 23 |

24 | 25 | 37 | 38 |

39 | 40 | 41 | 42 |
43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 |
List Name:
List Description:
59 | 60 |
61 | 62 | 63 |
64 | 65 | 66 | 67 | 68 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | -------------------------------------------------------------------------------- /add-task.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | Task Manager with PHP and MySQL 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 |

TASK MANAGER

16 | 17 | Home 18 | 19 |

Add Task Page

20 | 21 |

22 | 31 |

32 | 33 |
34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 98 | 99 | 100 | 101 | 102 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 |
Task Name:
Task Description:
Select List: 49 | 97 |
Priority: 103 | 108 |
Deadline:
121 | 122 |
123 | 124 |
125 | 126 | 127 | 128 | 129 | 130 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | -------------------------------------------------------------------------------- /config/constants.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /css/style.css: -------------------------------------------------------------------------------- 1 | /* 2 | Theme - Task Manager 3 | Version - 1.0 4 | Author - Vijay Thapa 5 | */ 6 | 7 | *{ 8 | margin: 0; 9 | padding: 0; 10 | font-family: verdana; 11 | } 12 | 13 | .wrapper{ 14 | width: 70%; 15 | margin: 0 auto; 16 | padding: 2%; 17 | } 18 | 19 | h1{ 20 | color: #3867d6; 21 | margin-bottom: 2%; 22 | } 23 | h3{ 24 | margin: 2% 0; 25 | } 26 | 27 | .menu{ 28 | margin-bottom: 2%; 29 | } 30 | 31 | .menu a{ 32 | font-weight: bold; 33 | margin-right: 1%; 34 | color: black; 35 | text-decoration: none; 36 | } 37 | 38 | .menu a:hover{ 39 | text-decoration: underline; 40 | } 41 | 42 | .btn-primary{ 43 | background-color: #26de81; 44 | padding: 5px; 45 | font-weight: bold; 46 | text-decoration: none; 47 | color: black; 48 | } 49 | 50 | .btn-primary:hover{ 51 | background-color: #20bf6b; 52 | } 53 | 54 | .btn-secondary{ 55 | background-color: #778ca3; 56 | padding: 5px; 57 | font-weight: bold; 58 | text-decoration: none; 59 | color: white; 60 | } 61 | .btn-secondary:hover{ 62 | background-color: #4b6584; 63 | } 64 | 65 | .btn-lg{ 66 | width: 50%; 67 | } 68 | 69 | 70 | .tbl-full{ 71 | width: 100%; 72 | } 73 | 74 | table tr th{ 75 | text-align: left; 76 | border-bottom: 1px solid black; 77 | padding: 1%; 78 | padding-top: 3%; 79 | } 80 | 81 | table tr td{ 82 | padding: 1%; 83 | } 84 | 85 | .tbl-half{ 86 | width: 40%; 87 | } 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | -------------------------------------------------------------------------------- /delete-list.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /delete-task.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | Task Manager with PHP and MySQL 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 |

TASK MANAGER

17 | 18 | 19 | 20 | 61 | 62 | 63 | 64 | 65 |

66 | 94 |

95 | 96 |
97 | 98 | Add Task 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 0) 136 | { 137 | //Data is in Database 138 | while($row=mysqli_fetch_assoc($res)) 139 | { 140 | $task_id = $row['task_id']; 141 | $task_name = $row['task_name']; 142 | $priority = $row['priority']; 143 | $deadline = $row['deadline']; 144 | ?> 145 | 146 | 147 | 148 | 149 | 150 | 151 | 157 | 158 | 159 | 166 | 167 | 168 | 169 | 170 | 171 | 176 | 177 | 178 | 179 |
S.N.Task NamePriorityDeadlineActions
. 152 | Update 153 | 154 | Delete 155 | 156 |
No Task Added Yet.
180 | 181 |
182 | 183 | 184 |
185 | 186 | 187 | -------------------------------------------------------------------------------- /list-task.php: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | Task Manager with PHP and MySQL 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 |

TASK MANAGER

19 | 20 | 21 | 62 | 63 | 64 | 65 |
66 | 67 | Add Task 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 0) 99 | { 100 | //We have tasks on this list 101 | while($row=mysqli_fetch_assoc($res)) 102 | { 103 | $task_id = $row['task_id']; 104 | $task_name = $row['task_name']; 105 | $priority = $row['priority']; 106 | $deadline = $row['deadline']; 107 | ?> 108 | 109 | 110 | 111 | 112 | 113 | 114 | 119 | 120 | 121 | 128 | 129 | 130 | 131 | 132 | 133 | 137 | 138 | 139 | 140 |
S.N.Task NamePriorityDeadlineActions
1. 115 | Update 116 | 117 | Delete 118 |
No Tasks added on this list.
141 | 142 |
143 | 144 |
145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | -------------------------------------------------------------------------------- /manage-list.php: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | Task Manager with PHP and MySQL 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 |

TASK MANAGER

18 | 19 | 20 | Home 21 | 22 |

Manage Lists Page

23 | 24 |

25 | 59 |

60 | 61 | 62 |
63 | 64 | Add List 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 0) 102 | { 103 | //There's data in database' Display in table 104 | 105 | while($row=mysqli_fetch_assoc($res)) 106 | { 107 | //Getting the data from database 108 | $list_id = $row['list_id']; 109 | $list_name = $row['list_name']; 110 | ?> 111 | 112 | 113 | 114 | 115 | 119 | 120 | 121 | 131 | 132 | 133 | 134 | 135 | 136 | 141 | 142 | 143 |
S.N.List NameActions
. 116 | Update 117 | Delete 118 |
No List Added Yet.
144 |
145 | 146 |
147 | 148 | -------------------------------------------------------------------------------- /references.txt: -------------------------------------------------------------------------------- 1 | 2 | 1. List (Group of Tasks) 3 | 4 | tbl_lists 5 | 6 | list_id (PK) 7 | list_name 8 | list_description 9 | 10 | 11 | 2. Tasks 12 | 13 | tbl_tasks 14 | 15 | task_id 16 | task_name 17 | task_description 18 | list_id 19 | priority 20 | deadline 21 | -------------------------------------------------------------------------------- /task_manager_db.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vijaythapa333/task-manager/cf348e7b4a69cbd0860f6fcd8ec9442cac351172/task_manager_db.zip -------------------------------------------------------------------------------- /update-list.php: -------------------------------------------------------------------------------- 1 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | Task Manager with PHP and MySQL 53 | 54 | 55 | 56 | 57 | 58 | 59 |
60 | 61 | 62 |

TASK MANAGER

63 | 64 | 65 | 66 | Home 67 | Manage Lists 68 | 69 | 70 | 71 | 72 |

Update List Page

73 | 74 |

75 | 83 |

84 | 85 |
86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 100 | 101 | 102 | 103 | 104 | 105 |
List Name:
List Description: 96 | 99 |
106 | 107 |
108 | 109 |
110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | -------------------------------------------------------------------------------- /update-task.php: -------------------------------------------------------------------------------- 1 | Executed 27 | $row = mysqli_fetch_assoc($res); 28 | 29 | //Get the Individual Value 30 | $task_name = $row['task_name']; 31 | $task_description = $row['task_description']; 32 | $list_id = $row['list_id']; 33 | $priority = $row['priority']; 34 | $deadline = $row['deadline']; 35 | } 36 | } 37 | else 38 | { 39 | //Redirect to Homepage 40 | header('location:'.SITEURL); 41 | } 42 | ?> 43 | 44 | 45 | 46 | Task Manager with PHP and MySQL 47 | 48 | 49 | 50 | 51 | 52 |
53 | 54 |

TASK MANAGER

55 | 56 |

57 | Home 58 |

59 | 60 |

Update Task Page

61 | 62 |

63 | 70 |

71 | 72 |
73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 87 | 88 | 89 | 90 | 91 | 144 | 145 | 146 | 147 | 148 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 |
Task Name:
Task Description: 83 | 86 |
Select List: 92 | 143 |
Priority: 149 | 154 |
Deadline:
167 | 168 |
169 |
170 | 171 | 172 | 173 | 174 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | --------------------------------------------------------------------------------