脚本-急求各位大神的指导~~~

WBOY
Release: 2016-06-02 11:30:07
Original
1044 people have browsed it

脚本selectphp数据库dos

<code>$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()命令就没用呢?失效啊,求各位大哥指点下!</code>
Copy after login
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!