View Single Post
Old 12-31-2012, 07:47 PM   PM User | #3
Ax3l
New Coder

 
Join Date: Aug 2012
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Ax3l is an unknown quantity at this point
Quote:
Originally Posted by Fou-Lu View Post
The value, as in country?
PHP Code:
if ($stmt $pdo->prepare('SELECT count(*) FROM test WHERE Country = :country'))
{
    
$stmt->execute(array(':country' => $_GET['Country']));
    
$count $stmt->fetchAll();

Unless you mean dynamic userchosen as the properties to fetch, then the answer is no you cannot use binding for that (you cannot create a dynamic structure on a prepared statement).
I mean the value in the Country field is user chosen.
Ax3l is offline   Reply With Quote