View Single Post
Old 06-19-2009, 03:21 AM   #5 (permalink)
9three
The Contributor
 
Join Date: Oct 2008
Posts: 75
Thanks: 4
9three is on a distinguished road
Default

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?
9three is offline  
Reply With Quote