Jump to content

Simple PHP 'if' Question...


danweav

Recommended Posts

Newbie Alert!...

I want to be able to write a bit of php that says something along the lines of 'if a = b or c show this...'

This is the code I've written so far...

 

<?php

$val = $row_RS_UserDetails['User_AccountType'];

if ($val == 'premium'); { ?><div style="background-color:#CCCCCC; border-color:#999999; border:solid; border-width:1px; width:300px; padding:10px; margin:5px">

Navigation for Premium Users:

</div><?php } ?>

 

How would I write it so it says 'if $val = premium or $val = premium2 show this...'

Thanks in advanced! 

Link to comment
https://forums.phpfreaks.com/topic/204868-simple-php-if-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.