-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Probably not a problem with the code (which I have been using for years and find to be excellent! Thank you!), but with my use of it.
My code
$sqlText = 'SELECT count(*) AS count FROM recruiters WHERE recruiter_email LIKE "%:agencyEmailDomain"';
$sqlParameters = array('agencyEmailDomain' => $agencyEmailDomain);
where $agencyEmailDomain == "gmail.com"
and $expandedSqlCommand = PdoDebugger::show($sqlText, $parameters);
expanded to
SELECT count(*) AS count FROM recruiters WHERE recruiter_email LIKE "%'Gmail.com'"
Notice those single quotes around the domain name?
Is there something that I can do, like escaping the % sign?
Thanks in advance for your help.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels