I am using HTTPService to run a query with my PHP script. This is to check if the user is banned from my game. I get an error for my trust certificate. How can I pass a variable in ROBLOX (the plr.Name) into a PHP script, to run the query. This is to remove the $_GET function.
This is the code I am using inside of ROBLOX:
hs = game.HttpService
game.Players.PlayerAdded:connect(function(plr)
local test = hs:GetAsync("link.tk/index.php?uname="..plr.Name, true)
game.Workspace.Key.Value = test
print(test)
end)
And my PHP script is:
<?php
include('db.php');
if(isset($_GET['uname'])){
$uname = $_GET['uname'];
$banned = DB::query('SELECT banned FROM users WHERE uname=:uname', array(':uname'=>$uname))[0]['banned'];
if($banned == 1){
echo "You are blacklisted from this game!";
}else{
echo "You are not banned from this game!";
}
}
?>
Thanks for the help, Ethan!
