php

This question already has an answer here:

  • Reference - What does this error mean in PHP? 30 answers

  • You need to create a connection to your database first, do this using mysql_connect() like so:

    $con = mysql_connect(DATABASE, USERNAME, PASSWORD, TABLE);
    

    and then pass this connection whenever you make a query.

    Also change all of your function calls to mysqli_*

    链接地址: http://www.djcxy.com/p/69228.html

    上一篇: PHP登录/注册错误

    下一篇: PHP