Warning: mysqli_select_db() expects exactly 2 parameters, 1 given in

后端 未结 3 1835
时光取名叫无心
时光取名叫无心 2020-12-22 14:23

im a beginner and also a diploma student... i have created database using localhost... im having problem viewing my database... please help me... i hope u can help me with a

3条回答
  •  情歌与酒
    2020-12-22 15:05

    You dont need a separate function for select database in mysqli function,

    The below method is more than enough to connect and select the database,

     // Connect to server and select databse.
        $conn = mysqli_connect($host, $username, $password,$db_name)or die("cannot connect"); 
    

    doc: http://php.net/manual/en/mysqli.select-db.php

提交回复
热议问题