脚本-急求各位大神的指导~~~
程序员文章站
2022-05-31 12:07:56
...
脚本selectphp数据库dos
$link = mysql_connect('localhost','root','')or die('连接失败'.mysql_error().mysql_errno()); mysql_query('create database if not exists an;');mysql_select_db('an');mysql_query('create table anweisong(id int ,name char(55));');$result = mysql_query('insert into anweisong(id,name) values('3','xxx');'); if($result and mysql_affected_rows()>0){ echo 'insert success!'; }else{ echo 'fail!!'; } 各位大神啊~~我在dos窗口中可以正常的添加表anweisong的内容,但是在php脚本文件中,为什么这个mysql_query()命令就没用呢?失效啊,求各位大哥指点下!
推荐阅读
-
李炎恢老师php第一季第一章第二节视频那个Guset项目为什么安装不成功?我跟着老师一步步操作的,求各位大神指点,谢谢!
-
小白表示不太懂这段代码的含义,求大神指导
-
如何取消div定义块与屏幕右侧的缝隙,求大神指导_html/css_WEB-ITnose
-
求大神指导排错:php+mysql一个简单的查询验证
-
如何取消div定义块与屏幕右侧的缝隙,求大神指导_html/css_WEB-ITnose
-
求各位大神们关于Xweibo的一个有关问题
-
关于jquery的问题!求各位大神指教!
-
开源框架的选择有关问题,求大神们指导.
-
求各位大神帮我搞一个介绍云南的html静态页面_html/css_WEB-ITnose
-
求大神帮忙写一个惟独数字,字母,中文,下划线,/,空格 组成的正则表达式。 急