您好,欢迎访问一九零五行业门户网

sql中执行没有关问题php中执行出错~

sql中执行没问题php中执行出错~~
错误是access denied for user: 'odbc@localhost' (using password: no)
我之前用的也是空密码,也没出错,现在其他文件也没出错,就这一个出错,贴出代码如下
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) values
('$username','$userpwd'))or die(mysql_error());
if($query)
{
$response=
;
}
else
{
$response=;
}
}
$smarty->assign(regstatus,$response);
$smarty->display(reg.html);
?>

------解决方案--------------------
没人回答时,完全可以 管理菜单-》删除帖子。
------解决方案--------------------
所以说啊 自己找找原因先
其它类似信息

推荐信息