This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $connect = mysqli_connect(GML_MYSQL_HOST, GML_MYSQL_USER, GML_MYSQL_PASSWORD, GML_MYSQL_DB); | |
| mysqli_set_charset($connect, "utf8"); | |
| function StatusGame($connect){ | |
| $table = ''; | |
| $games = mysqli_query($connect, 'SELECT * FROM game'); | |
| $games = mysqli_fetch_all($games, MYSQLI_ASSOC); | |
| foreach ($games AS $game){ | |
| $skins = mysqli_query($connect, 'SELECT * FROM skin WHERE skin_game = "'. $game['id'] .'"'); | |
| $skins = mysqli_fetch_all($skins, MYSQLI_ASSOC); | |
| $table .= '<table style="width: 100%; border-collapse: collapse;border: 1px solid;">'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| # PHP Array Search Return Multiple Keys | |
| # PHP Array tìm kiếm và trả về 1 mảng trong Multiple Key | |
| $data = [ | |
| ['id' => 1, 'text' => 'Dưới 20 người'], | |
| ['id' => 2, 'text' => '20 - 50 người'], | |
| ['id' => 3, 'text' => '50 - 100 người'], | |
| ['id' => 4, 'text' => '100 - 300 người'], | |
| ['id' => 5, 'text' => 'Trên 300 người'] | |
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var email = "youremail"; | |
| var password = "yourpassword"; | |
| var BASE_URL = "https://api.facebook.com/restserver.php"; | |
| var API_SECRET = "c1e620fa708a1d5696fb991c1bde5662"; | |
| var md5 = function(d){result = M(V(Y(X(d),8*d.length)));return result.toLowerCase()};function M(d){for(var _,m="0123456789ABCDEF",f="",r=0;r<d.length;r++)_=d.charCodeAt(r),f+=m.charAt(_>>>4&15)+m.charAt(15&_);return f}function X(d){for(var _=Array(d.length>>2),m=0;m<_.length;m++)_[m]=0;for(m=0;m<8*d.length;m+=8)_[m>>5]|=(255&d.charCodeAt(m/8))<<m%32;return _}function V(d){for(var _="",m=0;m<32*d.length;m+=8)_+=String.fromCharCode(d[m>>5]>>>m%32&255);return _}function Y(d,_){d[_>>5]|=128<<_%32,d[14+(_+64>>>9<<4)]=_;for(var m=1732584193,f=-271733879,r=-1732584194,i=271733878,n=0;n<d.length;n+=16){var h=m,t=f,g=r,e=i;f=md5_ii(f=md5_ii(f=md5_ii(f=md5_ii(f=md5_hh(f=md5_hh(f=md5_hh(f=md5_hh(f=md5_gg(f=md5_gg(f=md5_gg(f=md5_gg(f=md5_ff(f=md5_ff(f=md5_ff(f=md5_ff(f,r=md5_ff(r,i=md5_ff(i,m=md5_ff(m,f,r,i,d[n+0],7,-680876936),f,r,d[n+1],12,-389564586),m, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var email = "youremail"; | |
| var password = "yourpassword"; | |
| var BASE_URL = "https://api.facebook.com/restserver.php"; | |
| var API_SECRET = "62f8ce9f74b12f84c123cc23437a4a32"; | |
| var md5 = function(d){result = M(V(Y(X(d),8*d.length)));return result.toLowerCase()};function M(d){for(var _,m="0123456789ABCDEF",f="",r=0;r<d.length;r++)_=d.charCodeAt(r),f+=m.charAt(_>>>4&15)+m.charAt(15&_);return f}function X(d){for(var _=Array(d.length>>2),m=0;m<_.length;m++)_[m]=0;for(m=0;m<8*d.length;m+=8)_[m>>5]|=(255&d.charCodeAt(m/8))<<m%32;return _}function V(d){for(var _="",m=0;m<32*d.length;m+=8)_+=String.fromCharCode(d[m>>5]>>>m%32&255);return _}function Y(d,_){d[_>>5]|=128<<_%32,d[14+(_+64>>>9<<4)]=_;for(var m=1732584193,f=-271733879,r=-1732584194,i=271733878,n=0;n<d.length;n+=16){var h=m,t=f,g=r,e=i;f=md5_ii(f=md5_ii(f=md5_ii(f=md5_ii(f=md5_hh(f=md5_hh(f=md5_hh(f=md5_hh(f=md5_gg(f=md5_gg(f=md5_gg(f=md5_gg(f=md5_ff(f=md5_ff(f=md5_ff(f=md5_ff(f,r=md5_ff(r,i=md5_ff(i,m=md5_ff(m,f,r,i,d[n+0],7,-680876936),f,r,d[n+1],12,-389564586),m, |