Sözler yüklenemedi.
'; }else{ $ahmetiPre=AHMETI_WP_PREFIX; mysql_query("DELETE FROM {$ahmetiPre}soz_author") or die(mysql_error()); mysql_query("DELETE FROM {$ahmetiPre}soz") or die(mysql_error()); $query=null; $xml=simplexml_load_string(''.$_POST['soz_xml']); foreach ($xml->children() as $child){ $child->soz=mysql_real_escape_string(stripcslashes($child->soz)); $child->aciklama=mysql_real_escape_string(stripcslashes($child->aciklama)); $child->wp_soz_author_name=mysql_real_escape_string(stripcslashes($child->wp_soz_author_name)); $child->author_content=mysql_real_escape_string(stripcslashes($child->author_content)); $varmi=mysql_fetch_assoc(mysql_query("SELECT COUNT(wp_soz_author_id) as say FROM {$ahmetiPre}soz_author WHERE wp_soz_author_slug='$child->wp_soz_author_slug'")) or die ( mysql_error() ); if ($varmi['say'] < 1){ mysql_query("INSERT INTO {$ahmetiPre}soz_author (wp_soz_author_id,wp_soz_author_name,wp_soz_author_slug,author_content) values ('$child->wp_soz_author_id','$child->wp_soz_author_name','$child->wp_soz_author_slug','$child->author_content')") or die ( mysql_error().' '.exit() ); } mysql_query("INSERT INTO {$ahmetiPre}soz (soz_id,soz_author_id,soz,aciklama) values ('$child->soz_id','$child->wp_soz_author_id','$child->soz','$child->aciklama')") or die ( mysql_error() ); } echo 'Yazarlar ve sözler başarıyla eklendi.
'; } ?>