MySQL Forums
Forum List  »  Newbie

Re: JOIN works in phpMyAdmin, but not mysqli()
Posted by: Phillip Ward
Date: January 27, 2023 08:50AM

Are you reporting [all] [database] errors in your PHP code?
There are settings that you should use to report any and all problems with database access.

Are you checking that they query actually worked?
Doesn't the mysqli library have an error variable that you can check? (Never used it myself - started from PDO).

Does the account named "me" have access to both tables?
You'll tend to connect to MySqlAdmin as a superuser account that can access everything. Your application - quite correctly, BTW - is connecting using a dedicated user that must be explicitly granted permissions on things in the database.

Regards, Phill W.

Options: ReplyQuote


Subject
Written By
Posted
Re: JOIN works in phpMyAdmin, but not mysqli()
January 27, 2023 08:50AM


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.