Jump to content

mysqli_sql_exception 'No index used in query/prepared statement


Recommended Posts

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Fatal error: Uncaught exception 'mysqli_sql_exception' with message 'No index used in query/prepared statement SELECT * FROM members' in /var/www/html/myfyp/db/members.class.php:141 Stack trace: #0 /var/www/html/myfyp/db/members.class.php(141): mysqli->query('SELECT * FROM m...') #1 /var/www/html/myfyp/login.php(13): members->login('admin', 'admin') #2 {main} thrown in /var/www/html/myfyp/db/members.class.php on line 141[/quote]

i have the error when trying to execute a sql statement within my php code

how do i fix this?
I haven't used mysqli much, but from what I've read on the net concerning the message it's not really an "error". The message only indicates that the query doesn't use an index.

You might find [a href=\"http://php.net/mysqli_report\" target=\"_blank\"]mysqli_report[/a] useful.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.