PHP does not refresh the _php tutorial after saving the submit content

Source: Internet
Author: User
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 ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.