我想附加多個MYSQL數據庫字段的內容,以逗號分隔。如何追加多個數據庫抓取?
$customer_email = db_unqq($customer_row['email']);
但我有五個不同的電子郵件字段。因此,理想的$customer_email
將
$customer_email =
(
db_unqq($customer_row['email1']);
db_unqq($customer_row['email2']);
db_unqq($customer_row['email3']);
db_unqq($customer_row['email4']);
db_unqq($customer_row['email5']);
)
,但有一個逗號分隔每個(這樣他們就可以以電子郵件傳送)
他們是一個表 – Michael 2011-05-24 19:24:14
阿的不同領域。在這種情況下,'SELECT ... CONCAT(email1,',',email2,',',....)'應該這樣做: – 2011-05-24 19:25:48
所以當前的PHP腳本$ customer_email = db_unqq($ customer_row ['email' ]);將提供我在CONCAT中使用的所有領域? – Michael 2011-05-24 19:29:45