だから私は自分のデータベース内の画像のすべてのリンクを取得したい:
$findMyImages = "SELECT link FROM images WHERE model_id ='{$me['id']}'";
$imageResult = mysql_query($findMyImages) or die (mysql_error());
$result_array = array();
while($row = mysql_fetch_array($imageResult))
{
$result_array[] = $row;
}
print_r($result_array);
はこれprint_r();
を返します:
Array (
[0] => Array (
[0] => http://scoutsamerica.com/uploads/529746_10200706796941357_1747291081_n.jpg
[link] => http://scoutsamerica.com/uploads/529746_10200706796941357_1747291081_n.jpg
)
[1] => Array (
[0] => http://scoutsamerica.com/uploads/64311_10200924054292655_1770658989_n.jpg
[link] => http://scoutsamerica.com/uploads/64311_10200924054292655_1770658989_n.jpg
)
)
私は次のようなものを探しています:
Array (
[0] => http://scoutsamerica.com/uploads/529746_10200706796941357_1747291081_n.jpg
[1] => http://scoutsamerica.com/uploads/64311_102n_image.jpg
[2] => http://scoutsamerica.com/uploads/face.jpg
[3] => http://scoutsamerica.com/uploads/another_image.jpg
)
どうやってやるの?