Jump to content

strange mysqli index errors


neoform

Recommended Posts

When i set mysqli to report:

mysqli_report(MYSQLI_REPORT_INDEX);

 

for whatever reason when i do this query:

"SELECT name FROM system_permissions"

(it's a small table and i want all the permissions selected; the table has a primary key 'id')

 

I get this error:

Warning: mysqli::query() [function.mysqli-query]: (00000/0): No index used in query/prepared statement SELECT name FROM system_permissions in common.php on line 30

 

I don't get why either, since the query runs perfectly in mysql without any warnings.. so why is php giving me this error?

Link to comment
https://forums.phpfreaks.com/topic/46920-strange-mysqli-index-errors/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.