Script-The guidance of the great God is urgently asked ~ ~ ~

Source: Internet
Author: User
Keywords Script Select PHP Database dos
Scripting selectphp Database 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()命令就没用呢?失效啊,求各位大哥指点下!
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.