选择电子邮件地址

时间:2011-12-21 00:16:20

标签: php mysql sugarcrm

我正在尝试获取特定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;

1 个答案:

答案 0 :(得分:0)

我猜你的最后一行可能需要echo $email_add->email_address;