Question
Using PHP/MySQL 3. You need to create a User Object (30%) a. Should have private properties for each column of the accounts table. b. Should
Using PHP/MySQL
3. You need to create a User Object (30%) a. Should have private properties for each column of the accounts table. b. Should have public getter and setter methods for each property. c. Should have a public method that return a string of HTML that displays all of the users information in a table row.
4. You need to create a UserDB Object (30%) a. Should have static methods that can be reused for querying the accounts table: i. Getting all users in accounts table, should be return as User Objects. ii. Inserting a new user iii. Updating a users password iv. Deleting a user b. Note we will only be using the first method in this assignment
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started