Execution in SQL does not have a problem in PHP execution error ~

Source: Internet
Author: User
Execute in SQL no problem execution error in PHP ~ ~
Error is access denied for user: [email protected] ' (Using password:no)
I used to use a blank password, there is no error, and now other files are not wrong, this one error, the code is posted as follows

error_reporting (0);
Session_Start ();
Require ('.. /libs/smarty.class.php ');
$smarty = new Smarty;
$smarty->force_compile = true;
$smarty->debugging = false;
$smarty->caching = false;
$smarty->cache_lifetime = 120;



if ($_post[' OK '].value==1)
{
$username =$_post[' username '];
$userpwd =$_post[' userpwd '];
$query =mysql_query ("INSERT into User (USER,PWD)

(' $username ', ' $userpwd ') ' Or Die (mysql_error ());
if ($query)
{
$response = "
";
}
Else
{
$response = "";

}
}
$smarty->assign ("Regstatus", $response);
$smarty->display ("reg.html");
?>


------Solution--------------------
When no one answers, you can manage the menu-"delete post."
------Solution--------------------
So, why don't you just look for reasons?
  • Related Article

    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.