Hi all,
Could someone please help me out with the following snippet of code:
$bln = @$_REQUEST['mr_bln'];
$gln = @$_REQUEST['mr_gln'];
$dom = @$_REQUEST['mr_dom'];
$query = "SELECT * FROM $table WHERE mr_bln =\"$bln\" OR mr_gln =\"$gln\" AND mr_dom = \"%$dom%\" ";
The problem I am having is that even though the query WILL display results found for the first $bln variable, it WILL NOT display any results for the $gln variable. Even though the database contains info for the $gln variable.
The same happens if I switch them round and put the $gln as the first part of the query, then nothing gets displayed for the $bln.
Does that make sence? Any help is much appreciated.
Kindest regards.