Solved

Show content based on 2 Recordset conditions

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
reverse engineer .sql from php files 11 49
PHP delete contents of file- before writing to it 6 49
Google Dork query 7 60
Survey branching tutorial 11 37
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…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

685 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