Thanks, you answered my question Webdev1958.... problem is, it didn't solve my problem, because i didn't exactly explain it correctly. So here's another attempt at explaining the problem I'm trying to solve. So with a little more detail, any help would be much appreciated.
I start with a table. Then I query the table as follows:
$sql = "SELECT ID, Name, Address FROM shops ORDER BY ID desc";
$result = mysql_query($sql, $connection);
Then I put each row from the table into a new array.
$results = array();
while($row = mysql_fetch_assoc($result))
$results = array('name' => $row['Name'], 'address' => $row['Address'],'id' => $row['ID']);
So here's where the real problem is: I need to echo the first 3 rows(ID, Name, and Address) from the table. I'm just not sure how to put all that into a loop statement..