Did you try running the query directly in phpmyadmin to see whether that helps spot the problem? Do the column names match those in your database, for example? I am not that familiar with mysqli, but if it’s returning false
when you try to prepare a statement (which is what those error messages suggest), then either the database connection is a problem, or the query itself has a problem. It can’t be related to the data you’re trying to bind, because it doesn’t get that far.
1 Like