| | |
.php url problem
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: May 2009
Posts: 2
Reputation:
Solved Threads: 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
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
While retrieving it using the GET in storeitems.php page use,
PHP Syntax (Toggle Plain Text)
if(( $_GET["cat"]== "Food") || ($_GET["store"] == "Yes")) { : : : }
Last edited by csharplearner; May 23rd, 2009 at 11:47 pm.
![]() |
Similar Threads
- php url regex (PHP)
- PHP URL variables and if statement (PHP)
- virus problem (Windows NT / 2000 / XP)
- Help:Does not support loopback URL problem (ASP.NET)
- Paging Problem (PHP)
- php and mod_rewrite problem (PHP)
- php mysql problem (PHP)
- "system" function (PHP)
Other Threads in the PHP Forum
- Previous Thread: Global Methods
- Next Thread: How to split text into pages?
| Thread Tools | Search this Thread |
.htaccess alerts apache api archive array autocomplete beginner binary broken cakephp checkbox class cms code convert cron curl database dataentry date display duplicates dynamic echo email emptydisplayvalue error execute explodefunction file files firstoptioninphpdroplist folder form forms function functions google hack href htaccess html htmlspecialchars image include insert ip javasciptvalidation javascript joomla keywords limit link login mail matching menu methods mlm multiple mysql network object oop paypal pdf php problem query radio random recursion recursive redirect remote script search securephp server sessions shot sms source space sql subscription syntax system table tutorial tutorials update upload url validator variable video web youtube





