-1
Hello, I have a leaderboard on which I want to make sure that when I click on the player’s nick to open the profile containing his information, however, I don’t know exactly how to start.
I’m trying to:
if (isset($_GET['name']))
{
$query = $_GET['name'];
$query = htmlspecialchars($query);
$query = mysqli_real_escape_string($connection, $query);
$raw_results = mysqli_query($connection, "SELECT * FROM `user` JOIN `statistic` ON `user`.`uuid` = `statistic`.`uuid` LIKE '%". $query ."%'");
$raw_resultsmedia = mysqli_query($connection, "SELECT * FROM `user` JOIN `social media` ON `user`.`uuid` = `social media`.`uuid` LIKE '%". $query ."%'");
while($resultsmedia = mysqli_fetch_array($raw_resultsmedia) && $asd = mysqli_fetch_array($raw_results))
{
}
}
$query takes the right nickname, however, when it comes to taking the wrong messages. it already goes through a parameter ? name=Username, but when it is time to get the information of that particular nick, it does not respond correctly.
The uuid is a numeric set, so the parameter
name
should be the same set. P.S.: If you want to take a user’s data, it makes no sense to useLIKE
. Q2: You can use multipleJOIN
in a query.– Valdeir Psr