Jump to content

Archived

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

feri_soft

How to make a search with many options

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

Share this post


Link to post
Share on other sites
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'))";

Share this post


Link to post
Share on other sites

×

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.