Can somebody explain what this error is for ?
[COLOR=Navy]Fatal error: Uncaught exception ‘mysqli_sql_exception’ with message <<<No index used in query/prepared statement SELECT * FROM user WHERE email = ‘
My table structure is something like:
-id PK AutoIncrement
-user VARCHAR UNIQUE
-email VARCHAR UNIQUE.
When i execute the script and i have only one user in this db everything works good, but when i have 2 users the script throws the above error.
Is true that i don’t have an index on any fields, but i don’t understand why my script can’t execute the query anyway. If i write the exact query in phpMyAdmin it works.
Is it a bug with mysqli, or am i missing something ?
If somebody encountered the same problem and managed to deal with it can please help me solve it !
PS: I have the lastest WAMP installed on XP SP2. I’m using the object oriented feature of mysqli with simple queries.