Project / Support Center
Welcome, Guest. Please login or register. January 21, 2019, 06:44: PM
Home Help Search Login Register
D-Web Web Site Creator D - Web Web Site Creator On-line HTML Editor No Programming knowledge required. Web Global Net PayPal-Cart Shopping Cart System PayPal - Kart Shopping Cart System for E-Commerce over the internet, that's easy to use. Web Global Net Newsletter Manager Newsletter Manager On-line Newsletter Creator with Email Subscriber Management.
Ring Central Discount
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  php related  |  Topic: Show if based on 2 different dynamic comparisons 0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Send this topic Print
Author Topic: Show if based on 2 different dynamic comparisons  (Read 1010 times)
admin
Administrator
******
Offline Offline

Posts: 147


« on: December 19, 2017, 08:03: PM »

I had an issue where I did not want something to show if it was = to either 1 or the other, in this case Family or Military. If it was equal to either Military or Family I didn't want it to show.

So we had to trick it.

We're saying if its equal to military show (Red text strip out to show nothing) this else
 if its not equal to Family show this. And since its = to family nothing shows either again.

Here's what we came up with:

 <?php  if (@$row_rsadmin_user['use_reason'] == "Military") {
} elseif (@$row_rsadmin_user['use_reason'] != "Family") {
   
THIS AREA SHOWs NOTHING (DELETE THIS IF YOU USE IT)

   } else {
                            echo '<a href=year.php?reunion_year='.$year.'><img name="list_regs" src="a_registration_report_icon_sm.png" width="28" height="36" border="0" vspace="5" id="list_regs" alt="" />[/url]
                        

                      Registrations';
}     
?>
« Last Edit: December 19, 2017, 08:13: PM by admin » Report to moderator   Logged

The Unknown Webmaster
Pages: [1] Go Up Send this topic Print 
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  php related  |  Topic: Show if based on 2 different dynamic comparisons « previous next »
Jump to:  


Login with username, password and session length
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!