converting from mysql to mysqli
Hi
I am struggling a bit to convert mysql to mysqli and some things don't seem to be working and I have been battling for hours
I have this code that gives me the following error message
Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given
while (($row = mysqli_fetch_assoc($result)) !== false) {
$names[$row['user_name']] = $row['user_id'];
return $names;
}
Thank you in advance
Subject
Written By
Posted
converting from mysql to mysqli
May 24, 2017 03:36AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.