0

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

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by csharplearner
0

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:)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.