PHP Assignment 5 Web MVC
PHP Assignment 5 Web MVC
2. Add a search function that permit user search by first name, last name or email.
When Search button is clicked, the search string will be passed to the
user_controller.php which will get data and return to the list_user.php.
LIST OF USERS
Enter your email, first name or last name Search
3. Add the edit and delete link to the list to permit user can edit or delete a user.
LIST OF USERS
Enter your email, first name or last name Search
1
iViettech Education
Professional Programmer Training Center
4. When user click on edit link, the email of user on row is sent to controller,
controller is get user information and send to edit_user.php which will display user
information and permit user edit the information except email field. After edit, user
click save button, the data will be save to the database.
EDIT USER PAGE
Email: [email protected]
First Name: An
Last Name: Nguyễn
Save Cancel
5. When user click on delete link the user in this row will be deleted from database
and then update to the list.
Model
database.php
user_db.php
Controller
user_controller.php
View
user_list.php
edit_user.php
database_error.php
2
92-Quang Trung –Da Namg. Tel: 05113.888 279