Project / Support Center
Welcome, %1$s. Please login or register. March 19, 2024, 03:02: AM
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  php related  |  : Show if based on multiple variables 0 and 2 Guests are viewing this topic. « previous next »
: [1]
: Show if based on multiple variables  ( 6706 )
admin
Administrator
******


: 239


« : October 28, 2019, 09:32: PM »

<?php
// Show IF Conditional
if ($row_rslisting_show['ad_paid'] == 1 || $row_rsadlisting['ad_renewal'] == 1) {
?>

this will show something here if either of these two variables are met  

<?php }
// end show if Conditional
?>   

 <?php
// Show IF Conditional region either url variable   
if (@$_GET['order'] == "yes" || $_GET['preview'] == "yes") {
?>

 <table width="1%" border="0">
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Model</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Size</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Total</td>
    <td>&nbsp;</td>
  </tr>
</table>
 

<?php }
// endif Conditional either url variable
?>

ad_paid = 1
and
ad_renewal = 1

I assume you can put as many variable as you wish each separated by ||
« : February 14, 2022, 06:52: PM admin »  

The Unknown Webmaster
: [1]  
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  php related  |  : Show if based on multiple variables « previous next »
:  


Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!
Sorry, the copyright must be in the template.
Please notify this forum's administrator that this site is missing the copyright message for SMF so they can rectify the situation. Display of copyright is a legal requirement. For more information on this please visit the Simple Machines website.