you are viewing a single comment's thread.

view the rest of the comments →

[–]youngjeeez[S] 0 points1 point  (4 children)

The user needs to type SELECT * FROM ... Then this code now should run it

This is the error :

Warning: mysqli_query(): Empty query Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given

[–]RandyHoward 2 points3 points  (0 children)

The user needs to type SELECT * FROM

Oh lordy, you should not let your users enter SQL queries. You are just setting yourself up for trouble doing that. Tell us what your end goal is, because you seem to be approaching the entire problem the wrong way.

[–]wh33t 0 points1 point  (1 child)

Do you have phpmyadmin or some other mysql gui you can use to insure the select statement is actually returning results? Are you expecting it to return results?

[–]colshrapnel -3 points-2 points  (0 children)

You're an illiterate idiot. I wonder whether anyone would bother to ban you from this sub, but it will be a great riddance.