Server IP : 180.180.241.3 / Your IP : 216.73.216.127 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/AppServ/www/umedia3/inc/ |
Upload File : |
<? function ordr() { ////func("ordr"); global $a; global $tbl; global $condition; global $conditionval; global $field; global $primary; global $id; global $direct; $s="select * from $tbl where 1 "; if ($condition!="") { $s = "$s and $condition='$conditionval'"; } $s= "$s order by $field"; $r=tmq ($s,false); echo mysql_error(); //echo "<B>$s</b><br>"; $i=50; while($r2=tmq_fetch_array($r)) { $i=$i+10; $s="update $tbl set $field = $i where $primary = '$r2[$primary]' "; //echo $s . " " . mysql_error() . ";<BR>"; tmq($s); } if ($direct=="up") { $s="update $tbl set $field=$field-11 where $primary='$id' "; } else { $s="update $tbl set $field=$field+11 where $primary='$id' "; } //echo "<BR>"; tmq($s); redir($a,0); } ?>