Solved

2 conditions in one if statement

Posted on 2009-05-18
2
232 Views
Last Modified: 2012-05-07
in this statement:

".($subpage=="management" ? 'class="active"' : ''). "

i need to add this condition:

where $value['id']=="50"
0
Comment
Question by:phillystyle123
2 Comments
 
LVL 9

Accepted Solution

by:
wellhole earned 500 total points
ID: 24415027
".($subpage=="management" && $value['id']=="50" ? 'class="active"' : ''). "
0
 

Author Closing Comment

by:phillystyle123
ID: 31582714
gorgeous! thanks wellhole
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question