storeEmail
This commit is contained in:
@ -96,8 +96,8 @@ function storeEmail()
|
||||
|
||||
if($dogRes->success)
|
||||
{
|
||||
$sql = "INSERT INTO contact_email (dogs_id, from_email, msg) VALUES (?,?,?)";
|
||||
$conn->prepare($sql)->execute([$dogRes->data->id, $fromEmail, $msg]); // throw PDO::exception when failed
|
||||
$sql = "INSERT INTO contact_emails (dogs_id, from_email, msg) VALUES (?,?,?)";
|
||||
$conn->prepare($sql)->execute([$dogRes->data['id'], $fromEmail, $msg]); // throw PDO::exception when failed
|
||||
}
|
||||
|
||||
return $dogRes;
|
||||
|
||||
Reference in New Issue
Block a user