我正在尝试获取特定ID的电子邮件地址,并收到以下错误。
Catchable fatal error: Object of class stdClass could not be converted to string in /var/www/html/support/contact.php on line 33
代码
$id1 = '4fc091e5-a9f4-e948-31fa-4d912edea81a';
if (!$db->Query("SELECT email_address from ".TABLE_EMAILS." where id='$id1'")) $db->Kill();
$email_add = $db->Row();
echo $email_add;
答案 0 :(得分:0)
我猜你的最后一行可能需要echo $email_add->email_address;