mysql_query("INSERT INTO `wr_posts` (`ID`, `post_author`, `post_date`, `post_date_gmt`, `post_content`, `post_title`, `post_excerpt`, `post_status`, `comment_status`, `ping_status`, `post_password`, `post_name`, `to_ping`, `pinged`, `post_modified`, `post_modified_gmt`, `post_content_filtered`, `post_parent`, `guid`, `menu_order`, `post_type`, `post_mime_type`, `comment_count`) VALUES (NULL, 1, '$time', '$time', '$icerik', '$baslik',  '', 'publish', 'open', 'open', '', '".Sef($baslik)."', '', '', '$time', '$time', '', 0, '', 0, 'post', '', 0);") or die("PG".mysql_error());
				$postid = mysql_insert_id();
				$term_taxonomy_id = $_POST[hekat];
			mysql_query(" INSERT INTO `bot` (`id` ,`macid` ,`bolum`) VALUES (NULL , '$id', '$_POST[cekat]');");
			mysql_query("INSERT INTO `wr_term_relationships` (`object_id`, `term_taxonomy_id`, `term_order`) VALUES ($postid, $term_taxonomy_id, 0);");
			mysql_query("update wr_term_taxonomy set count=(count+1) where term_taxonomy_id=$term_taxonomy_id");
			unset($etiket);
			$etiket = array("".$bas[2]." şifresiz", "".$bas[2]." online izle","".$bas[2]." maçı şifresiz online","".$bas[2]." seyret","".$bas[2]." ücretsiz izle","".$bas[2]." maç izle");
			foreach ($etiket as $et) {
				mysql_query("INSERT INTO `wr_terms` (`term_id`, `name`, `slug`, `term_group`) VALUES (NULL, '$et', '".Sef($et)."', 0);");
				$etermid = mysql_insert_id();
				mysql_query("INSERT INTO `wr_term_taxonomy` (`term_taxonomy_id`, `term_id`, `taxonomy`, `description`, `parent`, `count`) VALUES (NULL, $etermid, 'post_tag', '', 0, 1);");
				$eterm_taxonomy_id = mysql_insert_id();
				mysql_query("INSERT INTO `wr_term_relationships` (`object_id`, `term_taxonomy_id`, `term_order`) VALUES ($postid, $eterm_taxonomy_id, 0);");
				}
				mysql_close();

bu kısım sanırım ?