+ 1

Help! Warning: mysqli_query() expects at least 2 parameters, 1 given in

Help! Warning: mysqli_query() expects at least 2 parameters, 1 given in Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in My code is { global $dbname, $dbuser, $dbhost, $dbpass; $conms = @mysqli_connect($dbhost,$dbuser,$dbpass); //connect mysql if(!$conms) return false; $condb = @mysqli_select_db($dbname); if(!$condb) return false; return true; }

26th Jan 2019, 8:40 AM
Aung Kyaw Soe
Aung Kyaw Soe - avatar
1 Antwort
+ 2
Did you forget the part where you use mysqli_query() and mysqli_fetch_array()? I don't see them in that code ...
26th Jan 2019, 9:04 AM
Ipang