sorry for my English,I try explain my self correctly. i'm trying to select data from db with array of parameters that i got from POST and the array im generating automatic looks like this :
foreach ($values as $key => $value) {
$postArray[":" . $value] = $value;
}
output looks like this:
$postArray = array(":victor" => "victor", ":victor@xample.com" => "victor@xample.com")
the problem is in sql syntax after AND with email because of point :
$sql ="SELECT userFirstName FROM users WHERE userLogin = :victor AND userEmail = :victor@xample.com";
I tried to do this like this victor@xample\.com
and it is still not working
any one have any tips or solutions about this?