UPDATED SQL:
SELECT listTitle, listLength, listCmt, listDt,GROUP_CONCAT('',mBCFName,' ',mBCLName,' ',moAmt,'<BR>') AS mOfferInfo
FROM User U
INNER JOIN Listing L on (U.uID = L.uID)
INNER JOIN MerchantOffer MO ON (L.listID = MO.listID)
INNER JOIN Merchant M on (M.mID = MO.mId)
GROUP BY listTitle
ORDER BY listDt DESC
How do I make this code output ?? :
Title: Apple iPhone 4S
Comment: need this one quick!
15257 days 22 hours ago
Offer By:
Diana Matthews 194.99
John Dickinson 185.99
http://dev.mysql.com/doc/refman/5.0/en/group-by-functions.html#function_group-concat
If you don’t want the comma, change it to something else:
or you could just use the
<br />as the separator: