siwelis Posted June 7, 2009 Share Posted June 7, 2009 I do I get the IMGS seperated and indiviudally useable out of a comma delimited row? My row looks like this: ID | NAME | IMGS 33 | Joey | 532.jpg,536.jpg,537.jpg,538.jpg,539.jpg,540.jpg I've had help with a similar issue before, but I just don't get the arrays yet. (Been working on this issue for 2 days). Thank you so much!!! Quote Link to comment https://forums.phpfreaks.com/topic/161309-comma-delimited-row-extraction/ Share on other sites More sharing options...
.josh Posted June 7, 2009 Share Posted June 7, 2009 assuming that entire row is one string: $row = "33 | Joey | 532.jpg,536.jpg,537.jpg,538.jpg,539.jpg,540.jpg"; $c = explode('|',$row); $images = explode(',',trim($c[2]); // example print_r($images); Quote Link to comment https://forums.phpfreaks.com/topic/161309-comma-delimited-row-extraction/#findComment-851209 Share on other sites More sharing options...
Ken2k7 Posted June 7, 2009 Share Posted June 7, 2009 Why not store the images in another table with one image per row? Quote Link to comment https://forums.phpfreaks.com/topic/161309-comma-delimited-row-extraction/#findComment-851211 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.