| | |
.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 |
apache api array beginner binary body broken buttons cakephp checkbox class cms code cron curl database date date/time display dynamic ebooks echo email error file files folder form forms function functions global google href htaccess html image include insert ip javascript joomla limit link list login mail mediawiki menu mlm msqli_multi_query multiple mycodeisbad mysql number oop parameter paypal pdf php phpincludeissue problem query radio random recourse recursion regex remote script search seo server sessions sms source sp space speed sql static subdomain syntax system table tag tutorial update upload url validator variable vbulletin video web webdesign white wordpress xml youtube





