Advertisement
Guest User

lewis nooby noob

a guest
Aug 1st, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. <?php
  2. $a = mysql_query("SELECT * FROM users WHERE id = '" . $_SESSION['user']['id'] . "'");
  3. $b = mysql_fetch_assoc($a);
  4. if($b['country'] == 'United Kingdom')
  5. { ?>
  6. LALALA
  7. <?php }
  8. ?>
  9.  
  10. How would I add multiple if($b['country'] == 'other country') in it without recreating the same statement again?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement