Question: / * * TODO * Implement DAO method used add new investor to investor table and cap - table EXAMPLE: public function investor ( $first

/** TODO
* Implement DAO method used add new investor to investor table and cap-table
EXAMPLE:
public function investor($first_name, $last_name, $email, $company){
$sql = "INSERT INTO investors (first_name, last_name, email, company) VALUES (:first_name, :last_name, :email, :company)";
$stmt = $this->conn->prepare($sql);
$stmt->execute(['first_name' => $first_name, 'last_name' => $last_name, 'email' => $email, 'company' => $company]);
$result = $stmt->fetch(PDO::FETCH_ASSOC);
return $result;
}
 /** TODO * Implement DAO method used add new investor to

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!