Hello there, Im doing php just for a short time, so Im not expert in many aspects and Im still learning.
I have a problem and I looking for a solution.
I have more pages, where I need get user ID number for receive result from code.
I writen example for understanding.
How to hide the number behind (?id=) ?
I dont want result from another user if anyone just write another number behind = .
Is this possible to hide the number for user or is there any solution? Or maybe repleace the number with any rand (20,200) for example? I tryed many options with rand but i am not getting the result from the database, because I need the proper ID for getting info from database.
Many thanks!!
<?php print "<div class='button'><A href='ranklist.php?id=$user[id]'>User info</a></div>"
if (isset($_GET['id'])) {
$userid=$_GET['id'];
//HERE IS CODE FOR RESULT //
}