session_start();
require_once('bin_conn/co_nn.php');
require_once('Class/Class.php');
//$aa="200609/20069289419501.jpg|200609/20069289419501_S.jpg|200609/20069289420119.jpg";
//$bb=explode("|",$aa);
//$dd="_S";
//$cc="200609/20069289419501.jpg|200609/20069289420119.jpg"
//查寻带有“$dd”的分节,删掉,怎么弄啊
//preg_replace("/\|\d*\/\d*_S.(jpg|gif)/","",$aa);
$execHdSClass="select * from tvcn_article where CommentCount=0";
$resultHDSClass=mysql_query($execHdSClass);
$S_i=mysql_num_rows($resultHDSClass);
for($iIi=1;$iIi<=$S_i;$iIi++){
$RSS=mysql_fetch_object($resultHDSClass);
$UploadFiles=$RSS->UploadFiles;
$UploadFiles=preg_replace("/\|\d*\/\d*_S.jpg/","",$UploadFiles);
$UploadFiles=preg_replace("/\|\d*\/\d*_S.gif/","",$UploadFiles);
if($UploadFiles!=""){
echo $UploadFiles;
echo "<br>";
$QQQ="update tvcn_article set UploadFiles='".$UploadFiles."' where ArticleID=".$RSS->ArticleID."";
$GetHits=mysql_query($QQQ);
}
}