![]() |
lefty 3/20/2017 |
I have two WHERE clause statements that both work as valid WHERE expressions in the Lookup Wizard . I need to combine them so that both sets of results populate the lookup wizard. I've tried many different combinations of php and SQL, but haven't found the correct way to write the expression. The two statements that currently work are: "foreman = '".$_SESSION["UserName"]."'"
|
H
|
Hertz2P author 3/20/2017 |
[/quote] " foreman = ' ' " || " foreman = '". $_SESSION["UserName"]."' "
|
![]() |
lefty 3/20/2017 |
" foreman = ' ' " || " foreman = '". $_SESSION["UserName"]."' "
|
H
|
Hertz2P author 3/20/2017 |
This should work " foreman = ' ' " OR " foreman = '". $_SESSION["UserName"]."' "
" foreman = ' ' " || " foreman = '". $_SESSION["UserName"]."' "
|
Y
|
YCH 3/21/2017 |
Just a guess and unchecked, try this : |
H
|
Hertz2P author 3/21/2017 |
Just a guess and unchecked, try this : " foreman = ' ' OR foreman = '". $_SESSION["UserName"]."'"
|