次のような単一列のmysql DBにいくつかのデータが保存されています。
1-Yizle-smallpic-this is pretty cool-2-User-smallpic-testing!1-Yizle-smallpic-this is pretty cool-2-User-smallpic-testing!-
今、私はそのデータを for ループで出力したいので、データ出力が
$uid,$username,$userpicurl,$comment..
私がこれまでに持っているコードは明らかに機能しますが、最初の出現のみを返します。
foreach($result->fetch_assoc() as $v){
list($uid, $username, $userpicurl, $comment) = explode("-", $v); print "$uid $username $userpicurl $comment";
}