为什么用SQL语句不能添加数据库表数据,哪个大哥帮忙看下呗!
本帖最后由 A1023824314 于 2013-07-29 18:05:01 编辑 $a=mysql_connect("localhost","root","");
if($a)
echo "shi";
$as=mysql_select_db("study",$a);
if($as)
echo "shi";
$sql="INSERT INTO s1 (id,cash)values('','1234')";
mysql_query($sql,$a);
?>
我觉得一点没错啊~但是到PHPADMIN上去看数据库中并没有新数据增加!
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn