query(" SELECT userid,subfolders,pmfolders FROM " . TABLE_PREFIX . "usertextfield WHERE subfolders!='' or pmfolders!='' "); ?>subfolders) $s_new_subfolders=get_converted_string($row->subfolders); if ($row->pmfolders) $s_new_pmfolders=get_converted_string($row->pmfolders); $query=""; $status=""; if (isset($_REQUEST["repair"])) { $condition=""; if ($s_new_subfolders && $s_new_subfolders!=$row->subfolders) $condition="subfolders='$s_new_subfolders'"; if ($s_new_pmfolders && $s_new_pmfolders!=$row->pmfolders) { if ($condition) $condition.=", "; $condition.="pmfolders='$s_new_pmfolders'"; } if ($condition) { $query= "update " . TABLE_PREFIX . "usertextfield set $condition where userid='$row->userid'"; $update=$db->query($query); if ($update) $status="خت"; else $status="Error! ".mysql_error().""; } } ?> $value): $a[$key]=iconv($old_encoding, $new_encoding, $a[$key]); endforeach; return serialize($a); } ?>
useridcurrent subfoldersnew subfolderscurrent pmfoldersnew pmfoldersstatus
userid?> subfolders?> subfolders) ? "".$s_new_subfolders."" : "") ?> pmfolders?> pmfolders) ? "".$s_new_pmfolders."" : "") ?>

Repair complete! Refresh page