Solved

Show content based on 2 Recordset conditions

Posted on 2013-06-27
1
179 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
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…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

636 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