Jump to content

GROUP_CONCAT and php


SamiBH

Recommended Posts

hellp,

 

I need your help

 

my query:

 

$res = get_result("SELECT GROUP_CONCAT(m.img_url).....

 

this will prints something like:

 

image1.jpg,image2.jpg,image3.jpg

 

I need to print every image

 

$row["image"]="<img src=\"".htmlspecialchars(unesc($row["GROUP_CONCAT(m.img_url)"]))."\" alt=\"\" />";

 

how can I make php make every comma = new image

 

thank you

Link to comment
https://forums.phpfreaks.com/topic/221194-group_concat-and-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.