
   $sql = "SELECT * from $table   order by pos desc,id"; 
   $res = getall($sql);
   //pre($res);
  foreach ($res as $key => $v) {
     
      $effimg = $v['effimg'];
       $tid = $v['id'];
     // echo '<p>'.$effimg.'</p>';
      if(substr($effimg,0,2)=='20'){

          echo '<p>'.$effimg.'</p>';
          $vvv = 'effimg/'.$effimg;

           $ss = "update $table set effimg='$vvv'   where id='$tid'   limit 1";
         // echo $ss.'<Br />';  
     // iquery($ss);  



      }
  }




