Web Global Net Web Application & Web Development Project Center

Technical Issues => php related => Topic started by: admin on October 28, 2019, 09:32: PM



Title: Show if based on multiple variables
Post by: admin on 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 these two variables are met  

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

ad_paid = 1
and
ad_renewal = 1

I assume you can put as many variable as you wish each separated by ||