PHP getContacts() method and variables
Do you know why this PHP getConatcts() doesn't seem to see the variable $lastname here?
$lastname = $_GET["lastname"];
$contacts = $i->getContacts(array("filters" => array('LAST_NAME=\'$lastname\'')));
If I hard code a name in the array for examle: $contacts = $i->getContacts(array("filters" => array('LAST_NAME=\'Smith\'')));
it accepts it and returns results, but with the variable $lastname it returns nothing - and there is no error so it must not see it. - It's probably a syntax error on my part but I would appreciate anyone pointing me in the right direction :)