Hi,

I'm very new to php and i'm really struggling to work the following out.

I have a link in one of my php pages
storeitems.php?cat=Foods&store=Yes
that uses a recordset in the target page to display a list according to the above variables.

How can I make my 1st variable (cat) = 'any'?
Whilst I need this link, I need to create a new link to filter everything with a Yes (whether or not Food is present in the record)

Hope i've made some sense

Any guidance appreciated. Thanks, Paul

Hi,

I'm very new to php and i'm really struggling to work the following out.

I have a link in one of my php pages
storeitems.php?cat=Foods&store=Yes
that uses a recordset in the target page to display a list according to the above variables.

How can I make my 1st variable (cat) = 'any'?
Whilst I need this link, I need to create a new link to filter everything with a Yes (whether or not Food is present in the record)

Hope i've made some sense

Any guidance appreciated. Thanks, Paul

From what i understood,


While retrieving it using the GET in storeitems.php page use,

if(( $_GET["cat"]== "Food") || ($_GET["store"] == "Yes"))
{ 
:
:
:
}

Hope this helps:)