Solved

Show content based on 2 Recordset conditions

Posted on 2013-06-27
1
169 Views
Last Modified: 2013-07-03
I'm showing content based on 'choose' being the value from the 'type' column of Recordset1 using this...

<?php if (!(strcmp("choose", $row_Recordset1['type']))): ?>

How do I add another condition? So the content would show if 'choose' being the value from the 'type' column of Recordset1 and if 'yes' being the value from the 'postcodecheck' column of Recordset2

So in theory....

<?php if (!(strcmp("choose", $row_Recordset1['type']))): &  if (!(strcmp("yes", $row_Recordset2['postcodecheck']))): ?>
0
Comment
Question by:BrighteyesDesign
1 Comment
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39282794
<?php 
if (!strcmp("choose", $row_Recordset1['type']) && !strcmp("yes", $row_Recordset2['postcodecheck']))
{
...
} 
?>

Open in new window

0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

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 …
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
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 look for a specific file type in a local or remote server directory using PHP.

758 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

14 Experts available now in Live!

Get 1:1 Help Now