$sql = "update main set ?u where ?u";
$data = array(
'TIME_GET' => $timeget,'PNAME' =>$pl, 'MNAME' => $mname, 'MET' => $met, 'CR' => $p_cr,
'UID' => $uid, 'NICK' => $nick, 'STATUS' => $status, 'RAITING' => $rating, 'ALLY' => $ally
);
$data2 = array('C_1' => $gal, 'C_2' => $syst, 'C_3' => $pnum);
$query = $db->query($sql,$data,$data2);