bazz
02-17-2008, 09:41 PM
Hi,
I have the query below which seems to ignore the 'where' clause. Instead of bringing in the data from a specificed area/locality, it seems to bring it all in.
my $sth = $dbhconnect->prepare ("SELECT DISTINCT BD.group_name
FROM tbl_businessDetails BD, tbl_address ADDR
WHERE ADDR.city_or_county_name = '$search_area'
") or die "prepare statement failed: $DBO::errstr\n";
$sth->execute;
Any pointers as to what I am missing here would be gratefully appreciated
bazz
I have the query below which seems to ignore the 'where' clause. Instead of bringing in the data from a specificed area/locality, it seems to bring it all in.
my $sth = $dbhconnect->prepare ("SELECT DISTINCT BD.group_name
FROM tbl_businessDetails BD, tbl_address ADDR
WHERE ADDR.city_or_county_name = '$search_area'
") or die "prepare statement failed: $DBO::errstr\n";
$sth->execute;
Any pointers as to what I am missing here would be gratefully appreciated
bazz