Designing solutions through programming - March 2 Lesson Notes
- Watch this video and ensure your PHPStorm connection settings are correct. Pay attention to detail. https://youtu.be/mm1pnvjgxgU
- Hello wonderful students. Today you will have two things to do. One easy (but annoying) and one kind of difficult.
- Easy but annoying:
- you should have a project in PHP storm named login.
- the files in this project should EXACTLY like the files here: https://github.com/bmackenty/login
- you can copy and paste them into your project
- Please pay careful attention to database_connect.php !!
- Please also make sure the tables we reference are the correct names
- ALWAYS TEST to make sure anything you change works.
- a little difficult:
- note the file user_edit.php.
- this file is where we can change a users email address.
- however, we call a file named "update_user.php" but it doesn't exist.
- you will need to create this file and use the following SQL syntax to update a record:
UPDATE users SET email = new_value_here WHERE id LIKE $user_id
This is hard. Good luck.