MySQL Forums
Forum List  »  Newbie

error in mysqli_fetch_assoc()
Posted by: M. Masters
Date: November 15, 2025 02:48PM

php=8.3.xx
mysql=8.0.xx
MysqlI Support = enabled
Client API library version = mysqlnd 8.3.27

Getting back into php/mysql after 2 decades with cf/sqlserver.

database connecting, selecting, ordering is fine

Display error when I want to draw a table of first/last names

display code fails at this line

while($row = $result->mysqli_fetch_assoc())


Fatal error: Uncaught Error: Call to a member function mysqli_fetch_assoc() on string in.....

Been on google for hours. Now here. :(

Thanks

Options: ReplyQuote


Subject
Written By
Posted
error in mysqli_fetch_assoc()
November 15, 2025 02:48PM


Sorry, only registered users may post in this forum.

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.