Re: JOIN works in phpMyAdmin, but not mysqli()
$sql = "SELECT * FROM items JOIN owners WHERE items.ownerid = owners.id;";
^
Lose the semicolon in your SQL, like this
$sql = "SELECT * FROM items JOIN owners WHERE items.ownerid = owners.id";
BTW, you should SELECT the columns you want, rather than SELECT *.
Good luck,
Barry.
Subject
Written By
Posted
Re: JOIN works in phpMyAdmin, but not mysqli()
January 27, 2023 06:15PM
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.