Jump to content
Old threads will finally start getting archived ×

wildware

New Members
  • Posts

    1
  • Joined

  • Last visited

wildware's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. 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 // }
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.