What is this code doing?

hey guy can someone explain to me what is this php code doing I find it hard to understand it thx!


<?php
$sqlconnect=mysql_connect("localhost","hyperian_track","gsmtrack");
if(!$sqlconnect)
 die(mysql_error());
mysql_select_db("hyperian_track", $sqlconnect);
$fetched=mysql_query("SELECT * FROM location");
while($row = mysql_fetch_array($fetched))
{
 $temp[]=$row[uname];
}
$names=sizeof($temp);
$report="total=$names&";
foreach($temp as $list)
 
 $report.="name".$names--."=".$list."&";

echo $report;
mysql_close($con);

?>
 

Especally this part** $report.=“name”.$names–."=".$list."&";
**