Facebook
From Crippled Flamingo, 2 Years ago, written in PHP.
This paste is a reply to 1354130998078257 from Walloping Tortoise - view diff
Embed
Download Paste or View Raw
Hits: 234
  1. <?php
  2.  
  3. function level ($id): string
  4. {
  5.   $queryResult = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `user_id` = '".$id."' LIMIT 1"));
  6.  
  7.   $levels = [
  8.     1 => 'แƒกแƒขแƒแƒœแƒ“แƒแƒ แƒขแƒฃแƒšแƒ˜ แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒ”แƒšแƒ˜',
  9.     2 => 'แƒ›แƒแƒ“แƒ”แƒ แƒแƒขแƒแƒ แƒ˜',
  10.     3 => 'แƒแƒ“แƒ›แƒ˜แƒœแƒ˜แƒกแƒขแƒ แƒแƒขแƒแƒ แƒ˜',
  11.     4 => 'CEO',
  12.   ];
  13.  
  14.   $default = '';
  15.  
  16.   $level = array_key_exists($queryResult['level'], $levels) ? $levels[$queryResult['level']] : $default;
  17.  
  18.   return $level;
  19. }

Replies to Re: 1354130998078257 rss

Title Name Language When
1354130998078257 Sweet Parakeet php 2 Years ago.