$strsql = insert into `xxx` (`aaa`) values ('.$_post[bbb].','.$_post[ccc].',,now());
$result=@mysql_query($strsql,$my_con);
$maxrow=@mysql_affected_rows();
testecho ($y.mysql_affected_rows(). $errcode .$strsql); #debug
mysql_sql_log($strsql,mysql_affected_rows(),$_server['script_name'].:.__line__);
if($maxrow>0){
$insertflag =1;
}
echo '';
重点是最后一句,在insert完之后,重新载入一次页面,并且加上参数,然后在页面上写个判断,又get的参数并且为1的时候disabled。
复制代码 代码如下:
http://www.bkjia.com/phpjc/743579.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/743579.htmltecharticle复制代码 代码如下: $strsql = insert into `xxx` (`aaa`) values ('.$_post[bbb].','.$_post[ccc].',,now()); $result=@mysql_query($strsql,$my_con); $maxrow=@mysql_affe...
