
25-06-2010, 01:38:43
|
| |
PHP- Kodu: <?php
// coded by_antiseptic
mysql_connect("localhost","root","root");
mysql_select_db("wordpress");
$sorguxx = "SELECT * FROM wp_posts";
$sorgulamaxx = mysql_query($sorguxx);
while ($kayitx=mysql_fetch_array($sorgulamaxx)){
$kontrol = explode("<img", $kayitx['post_content']);
if($kontrol[1]) {
$icerik = mysql_real_escape_string("<img".$kontrol[1]);
mysql_query("UPDATE wp_posts SET post_content='".$icerik."' WHERE ID='".$kayitx['ID']."'");
echo $kayitx['post_title']." güncellendi.<br />\n";
}
}
?> kendim yazdım, %99 çalışır..
üst kısımdan mysql ayarlarını yapın |