i have an error. Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, bool given in C:xampphtdocsgudangfunction.php [closed]
Question
$conn = mysqli_connect("localhost", "root", "","gudang");
function query($query) {
global $conn;
$result = mysqli_query($conn, $query);
$rows = [];
while( $row = mysqli_fetch_assoc($result) ) {
$rows[] = $row;
}
return $rows;
}
0
mysql, php
3 years
2019-12-07T10:56:22-05:00
2019-12-07T10:56:22-05:00 0 Answers
132 views
0
Leave an answer