Pervasive 8.6
PHP v4.3.1
Apache v1.3.33
The following syntax works if I hardcode in the string value. However, if I use a variable, I get no results. I've tried using wildcards, i.e. %, both before and after the variable but get the same results. If I replace 'SOME NAME HERE' with '$sup_name', no results come back. I have confirmed that $sup_name has a valid name. Any suggestions?
[blue]$sup_name[/blue] = trim($supervisor);
$dir_query = "SELECT lastname, firstname, ssn FROM soinc.upempl WHERE STATUS <> '3' AND SUPERVSR = '[red]SOME NAME HERE[/red]'
UNION
SELECT lastname, firstname, ssn FROM topllc.upempl WHERE STATUS <> '3' AND SUPERVSR = '[red]SOME NAME HERE[/red]'";
$dir_result = odbc_exec($connect_soinc, $dir_query);
$dir_row = odbc_fetch_row($dir_result);
PHP v4.3.1
Apache v1.3.33
The following syntax works if I hardcode in the string value. However, if I use a variable, I get no results. I've tried using wildcards, i.e. %, both before and after the variable but get the same results. If I replace 'SOME NAME HERE' with '$sup_name', no results come back. I have confirmed that $sup_name has a valid name. Any suggestions?
[blue]$sup_name[/blue] = trim($supervisor);
$dir_query = "SELECT lastname, firstname, ssn FROM soinc.upempl WHERE STATUS <> '3' AND SUPERVSR = '[red]SOME NAME HERE[/red]'
UNION
SELECT lastname, firstname, ssn FROM topllc.upempl WHERE STATUS <> '3' AND SUPERVSR = '[red]SOME NAME HERE[/red]'";
$dir_result = odbc_exec($connect_soinc, $dir_query);
$dir_row = odbc_fetch_row($dir_result);