06-19-2009, 03:21 AM
|
#5 (permalink)
|
|
The Contributor
Join Date: Oct 2008
Posts: 75
Thanks: 4
|
So this is what I thought of but its returning false on anything bigger than 1
PHP Code:
$mysqli = new mysqli('localhost', 'root', '', 'store'); $result = $mysqli->query("SELECT ID FROM products WHERE ID = '$input_id'"); if ($result == $input_id) return true; return false;
I'm not sure if that's what you meant by allowing SQL do the work?
|
|
|
|