Home > Backend Development > PHP Tutorial > 为啥用SQL语句不能添加数据库表数据,哪个大哥帮忙看下呗

为啥用SQL语句不能添加数据库表数据,哪个大哥帮忙看下呗

WBOY
Release: 2016-06-13 11:30:38
Original
1000 people have browsed it

为什么用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上去看数据库中并没有新数据增加!
数据库
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template