Copy CodeThe code is as follows:
$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 ';
The point is the last sentence, after the insert is finished, reload the page, add the parameters, and then write a judgment on the page, get the parameters and the time is 1 disabled.
Copy CodeThe code is as follows:
http://www.bkjia.com/PHPjc/743579.html www.bkjia.com true http://www.bkjia.com/PHPjc/743579.html techarticle Copy the code as follows: $strsql = "INSERT into ' xxx ' (' aaa ') VALUES ('". $_post["BBB"]. "', '". $_post["[CCC]]." ', Now ()) "; $result =@ mysql_query ($strsql, $my _con); $maxrow = @mysql_affe ...