Mistři v programování na #hovnokod

PHP #521

$query = " SELECT * FROM `costs` WHERE NID = ".$id;
$res = mysql_query($query);
$result = "var gggg = new Array(";
while($row = mysql_fetch_row($res)) {
  $result = $result. "Array(".$row[0].",".$row[2].",".$row[3].",".$row[4].",".$row[5].",".$row[6].",'".$row[7]."'),";
}
echo $result;

HovnoKod,