group_concat(A,' ',B,' ',C) as Name,
then using this php for displaying
<td><?php echo $row['Name']; ?></td>
using this query returns Name X,Y
but i prefer to have the names not comma separated rather line break
X
then Y new line
Any idea?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t understand what do you mean by line break between X and Y, but if you need the values to be comma separated you can add any separator to the Group_Concat like that:
and here is some other separators you can use.