Solved

Show content based on 2 Recordset conditions

Posted on 2013-06-27
1
174 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

856 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