Quote:
Originally Posted by eMonk
This keeps returning 0 results. Any ideas?
Code:
$qry1 = $db->prepare("SELECT id FROM user WHERE username = ? AND password = ?");
$qry1->bind_param('ss', $_GET['username'], $_GET['password']);
$qry1->execute();
$qry1->store_result();
$result_1 = $qry1->num_rows;
echo $result_1;
|
that's because ->bind_result() is a method of the mysqli_stmt class. it's not a method of the mysqli class.
lol - Just kidding - It's a small world...