Question: ***** PHP *** can someone tell me what im doing wrong I cant seem to figure it out. the solution involves a single line of

***** PHP *** can someone tell me what im doing wrong I cant seem to figure it out. the solution involves a single line of code /* person = ID of user i want db = data base return bool false if not succesful || return database list if success /* 
 class user { 
 public function __construct($db, $person) { if (is_object($db)) { 
 $this->db = $db; 
 $this->user_id = $person; } 
 else { return false; 

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!