Solved

2 conditions in one if statement

Posted on 2009-05-18
2
205 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

Easy Project Management (No User Manual Required)

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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 …
Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.

757 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now