darryncooke
Technical User
Hi,
So I have some results I am trying to get into a query and I can get the AND statement working fine.
The problem I am having is such.
I am searching industries and cities. However lets say someone wants to search an industry but no city I get no results. I tried making the default value of each "*" but that didnt work.
Is there a default select ALL?
I have right now
Darryn Cooke
| The New Orange County Graphic designer and Marketing and Advertising Consultant
| Marketing and Advertising blog
So I have some results I am trying to get into a query and I can get the AND statement working fine.
The problem I am having is such.
I am searching industries and cities. However lets say someone wants to search an industry but no city I get no results. I tried making the default value of each "*" but that didnt work.
Is there a default select ALL?
I have right now
Code:
$ind_industry_search = "*";
if (isset($_GET['industry'])) {
$ind_industry_search = $_GET['industry'];
}
$cty_industry_search = "*";
if (isset($_GET['city'])) {
$cty_industry_search = $_GET['city'];
}
Darryn Cooke
| The New Orange County Graphic designer and Marketing and Advertising Consultant
| Marketing and Advertising blog