$value){$one[]=$key;$two[]="'".$value."'";}$zd = implode(',',$one);$z = implode(',',$two);mysql_query("set names utf8");$sql="INSERT INTO main (".$zd.") VALUES (".$z.")";if (!mysql_query($sql,$con)){ die('Error: ' . mysql_error()); }echo "";echo "";?>