while($assoc = mysql_fetch_assoc($query0))
{
echo'["'.$assoc['icon'].'","'.$assoc['vnum'].'","'.$assoc['count'].'","'.$assoc['chance'].'\r\n"],';
$sql_query = mysql_query("INSERT INTO ".ISHOP_MYSQL_DB.".stock_items_".ISHOP_TABLE_POSTFIX." (vnum,count,user_id)VALUES('".$assoc['vnum']."','".$assoc['count']."','".$_SESSION['ISHOP_SESSION_ID']."')");
if (!$sql_query) {
die(mysql_error());
}
}


Bunu dener misin?