Jump to content

How to make a search with many options


feri_soft

Recommended Posts

By the way its form now i get an error again:

[code]if(!empty($district)){
$district = join ("','", $district);
$where[] = "(district IN ('$district'))";
}[/code]

when i view the output its not in('1','2'.....)
but 1','2 ... and i get Column 'district' in where clause is ambiguous

Help please
If you view $district you will get 1','2

If it says district is ambiguous then you must be selecting the same column name from more than one table, maybe because you are using "SELECT * FROM). Specify which one to use eg

$where[] = "(listings.district IN ('$district'))";

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.