警告:mysqli_select_db()需要2个参数,给定0

时间:2015-12-24 04:39:44

标签: php

  2015-12-10,2015-12-11,2015-12-12,2015-12-13,2015-12-14

1 个答案:

答案 0 :(得分:0)

更改

$db = mysqli_select_db()($link, "users") or die("Couldn't select database: " . mysqli_connect_error());

$db = mysqli_select_db($link, DB_NAME) or die("Couldn't select database: " . mysqli_connect_error());

或者除去那条线并执行此操作:

$link = mysqli_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME) or die("Couldn't make connection.");