[Solved] Could someone explain this php mysql script? [closed]


This question does not really belong here, but I’ll answer it for the sake of closing the question without bothering moderators.

// mysql query is executed
$images = mysql_query("Select URL from images where Category = 'Management' ");

// empty array initialized
$imagerow = Array();

// while there are results of the executed mysql query
while ( $row = mysql_fetch_assoc($images) )
{
    // create a new element in $imagerow array and put url of the image there
    $imagerow[] = $row['URL'];
}

// output first element of the array we have just filled
echo $imagerow[0] ;

1

solved Could someone explain this php mysql script? [closed]