具體應該怎麼操作?3 ?% v7 K" s; M/ u' Q
整個sszxedit文件的代碼如下,
$ n/ H; U& N0 C* r" z2 ^! i<?2 T! Z: X) J- v$ G+ e' _/ C
include("in.php");+ A6 X6 U4 R1 t% _; ~. f
if (empty($_POST['YXX']) or empty($_POST['YID']))/ c1 I% H: y4 P! X* @& _& o+ U
{
7 _5 T% p" N8 x7 ` E u% l4 M$ jecho "<script>alert('非法提交!請重新提交!');history.back();</script>";5 i: z# | z$ Z) c$ v$ }" p
exit;1 F0 p5 s8 U3 K
}
7 O6 l0 }" G \7 l$YID=htmlencode2($_POST['YID']);
& G8 `' I0 E* h+ H7 J9 |' d* y0 G$YXX=htmlencode2($_POST['YXX']);! A8 i3 c0 \7 ]! w3 ]% v6 G4 W
$exec="update ycs set YXX='".mb_substr(htmlencode2($_POST['YXX']),0,15,'gbk')."' where YZM=$yimaoid and YID=$YID and YLX='所屬小學'";
) V- C+ ]4 h" a, ^. t7 G8 xmysql_query($exec);' v# U- q4 H1 s' ]3 v
require 'ssxxphp.php';
z% i0 K" K0 t" d Zmysql_close();7 w: c5 n3 S1 G' b) @
echo "<script>alert('修改成功!');history.back();</script>";
x" ]) q( K& t# ~2 l" a7 u* qexit;
6 s& l+ v9 L b6 G?> |