Pessoal, me ajudem por favor.
Estou instalando um site e esta aparecendo os seguintes erros:
( ! ) Warning: mysqli_select_db() expects parameter 1 to be mysqli, string given in C:\wamp64\www\price\install.php on line 44
Call Stack
#
Time
Memory
Function
Location
1
0.0020
347360
{main}( )
...\install.php:0
2
3.0142
360408
mysqli_select_db ( )
...\install.php:44
( ! ) Warning: mysqli_query() expects parameter 1 to be mysqli, string given in C:\wamp64\www\price\install.php on line 49
Call Stack
#
Time
Memory
Function
Location
1
0.0020
347360
{main}( )
...\install.php:0
2
3.0162
360896
mysqli_query ( )
...\install.php:49
( ! ) Warning: mysqli_error() expects exactly 1 parameter, 0 given in C:\wamp64\www\price\install.php on line 49
Call Stack
#
Time
Memory
Function
Location
1
0.0020
347360
{main}( )
...\install.php:0
2
3.0182
360888
mysqli_error ( )
...\install.php:49
36-if (!isset($_GET['error'])) {
37-// get login details from Step 1
38-$hostname = $_POST['Host'];
39-$database = $_POST['Name'];
40-$username = $_POST['Username'];
41-$password = $_POST['Password'];
42-$databaseConnect = mysqli_connect($hostname, $username, $password) or trigger_error(mysqli_error(),E_USER_ERROR);
43-// connect to database
44-mysqli_select_db($database, $databaseConnect);
47-// drop config table if it already exists
48-$sql = "DROP TABLE IF EXISTS affiliSt_config";
49-mysqli_query($sql, $databaseConnect) or die(mysqli_error());
Agradeço desde já.