|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
- abracadabra -
I'm have hyperlinks in a a page called Quotes.php when some clicks a link i the values to appear of that same Quotes.php page. example. Quotes.php?letter=A when this is done i want the results from this query to be displayed on this same page - this query will also creat links and the results of clicking on these links should be displayed also on this same page.
I need to know how do i get - get result 1 to dispay when 2, and two has no value and ,when 1 is empty to display 2 only and not three, when 3 has a value don't display 1 and 2. I want the initial page, search, and the results displayed all in one page. see and exmple at http://www.rebelsoul.com/Quotes.php
__________________
bj |
|
#2
|
|||
|
|||
|
I need to know how do i get - get result 1 to dispay when 2, and two has no value and ,when 1 is empty to display 2 only and not three, when 3 has a value don't display 1 and 2.
![]()
__________________
-=-=-=-=-=-=-=-=-=-=-=-=- PHP Scripts n Stuff http://www.bcnstech.net/ -=-=-=-=-=-=-=-=-=-=-=-=- |
|
#3
|
|||
|
|||
|
Use switch
Use the php switch function:
first, define your functions PHP Code:
Then: PHP Code:
or, you can set up a system of ifs: PHP Code:
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > PHP Development > - abracadabra - |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|