The below query is always returning an empty array i have checked that the $_POST is working but i am unsure what is going on?
$database = new wpdb(QLBBackendUser, QLBBackendPass, QLBBackendDB, DB_HOST);
if (isset($_POST['register-user'])):
$user = $database->get_results('SELECT * FROM users WHERE email='.$_POST["user_email"]);
var_dump($user);
endif;
Please note this is for Wordpress using WPDB Class.
wpdbclass directly...Use the global$wpdbobject instead...Read more in the codex