SHARE
TWEET

Untitled

a guest May 22nd, 2017 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.              
  3. $DBTYPE = 'mysql';
  4. $DBHOST = 'localhost';
  5. $DBUSER = 'isp_admin';
  6. $DBPASSWORD = 'u7FmW0cAX1oRpiUd';
  7. $DBNAME = 'isp_admin';
  8.  
  9. $link = mysql_connect($DBHOST, $DBUSER, $DBPASSWORD);
  10. mysql_select_db($DBNAME);
  11. if (!$link) {
  12.     die('Could not connect: ' . mysql_error());
  13. }
  14.  
  15. $result = mysql_query("SELECT * FROM zakaznici WHERE id=".$_row['id']);
  16.  
  17. while($row = mysql_fetch_assoc($result))
  18. {
  19.      if($row['firewall_p2p'] == '1')
  20.      {
  21.         echo '<span class="label label-warning">P2P user</span>';
  22.      }
  23.      else
  24.      {
  25.         echo '';
  26.      }
  27. }
  28.                 ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top