Quote:
Originally Posted by Fou-Lu
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.