.php url problem

Reply

Join Date: May 2009
Posts: 2
Reputation: cs4monkey is an unknown quantity at this point 
Solved Threads: 0
cs4monkey cs4monkey is offline Offline
Newbie Poster

.php url problem

 
0
  #1
May 23rd, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 99
Reputation: csharplearner is an unknown quantity at this point 
Solved Threads: 3
csharplearner's Avatar
csharplearner csharplearner is offline Offline
Junior Poster in Training

Re: .php url problem

 
0
  #2
May 23rd, 2009
Originally Posted by cs4monkey View Post
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,
  1. if(( $_GET["cat"]== "Food") || ($_GET["store"] == "Yes"))
  2. {
  3. :
  4. :
  5. :
  6. }
Hope this helps
Last edited by csharplearner; May 23rd, 2009 at 11:47 pm.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC