I'm creating a basic blog CMS using PHP MySQL jQuery, Below is my MySQL table:
id : mediumint(6) :AUTO_INCREMENT
content : longtext
content_pic : text
1 content_pic column save several img src: < img src="http://">< img src="http://">...
& PHP:
$query=mysql_query($sql) or die(mysql_error());
while($list=mysql_fetch_array($query)){
print"
<div class=\"content\">$list[content]</div>
<div class=\"contentpic\">$list[content_pic]</div>
";
}
There're several img src tag in 1 $list[content_pic] output,
how do i select each img in jQuery?
Should I named every img, add class name when i upload string to mysql?
How to select each picture from PHP output usually? for example:
http://www.asos.com/Vans/Vans-Authentic-Plimsolls/Prod/pgeproduct.aspx?iid=691064&abi=1&clr=Black
How to give each img unique id then i can select in jQuery?
Any suggestion will be appreciated,
Thank you so much!