Question: Q2. Write object-oriented PHP code to implement the following scenario. (10 Marks) Your code should connect to MySQL database and print the name and age

Q2. Write object-oriented PHP code to implement the following scenario. (10 Marks) Your code should connect to MySQL database and print the name and age (in years) for each user. Use the following information: Database Name: users_db Username: users Password: u123@123 Table: Users(id, name, birthdate(dd/mm/yyyy))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
