SHARE
TWEET

Untitled

a guest Jul 21st, 2017 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $tag=$_GET['tag'];
  3. $loc="localhost";
  4. $username="sj";
  5. $password="asldkjasd";
  6. $database="sj_xbl";
  7. mysql_connect($loc,$username,$password);
  8.  
  9. $query="SELECT * FROM members WHERE tag='$tag'";
  10. $result=mysql_query($query);
  11. $num=mysql_numrows($result);
  12. mysql_close();
  13.  
  14. $i=0;
  15. while ($i < $num) {
  16. $tag=mysql_result($result,$i,"tag");
  17. $email=mysql_result($result,$i,"email");
  18. $points=mysql_result($result,$i,"points");
  19. $referral=mysql_result($result,$i,"referral");
  20. $age=mysql_result($result,$i,"age");
  21. $rank=mysql_result($result,$i,"rank");
  22. $active=mysql_result($result,$i,"active");
  23.  
  24. echo "
  25. <form action='scripts/update.insert.php' method='post'>
  26. GamerTag: <input type='text' name='ud_tag' value='$tag'><br>
  27. Email: <input type='text' name='ud_email' value='$email'><br>
  28. Points: <input type='text' name='ud_first' value='$points'><br>
  29. Referral: <input type='text' name='ud_first' value='$age'><br>
  30. Age: <input type='text' name='ud_first' value='$rank'><br>
  31. Current Rank: echo '$rank';
  32. New Rank: <select>
  33. <option value='img src=\"images/ranks/GEN.png\" alt=\"General\">General</option>
  34.  <option value='img src=\"images/ranks/LTG.png\" alt=\"Leiutenant General\" '>Leiutenant General</option>
  35.  <option value='img src=\"images/ranks/MG.png\" alt=\"Major General\" '>Major General</option>
  36.  <option value='img src=\"images/ranks/BG.png\" alt=\"Brigadier General\" '>Brigadier General</option>
  37.  <option value='img src=\"images/ranks/COL.png\" alt=\"Colonel\" '>Colonel</option>
  38.  <option value='img src=\"images/ranks/MAJ.png\" alt=\"Major\" '>Major</option>
  39.  <option value='img src=\"images/ranks/CPT.png\" alt=\"Captain\" '>Captain</option>
  40.  <option value='img src=\"images/ranks/2LT.png\" alt=\"Lieutenant\" '>Lieutenant</option>
  41.  <option value='img src=\"images/ranks/MSG.png\" alt=\"Master Sergeant\" '>Master Sergeant</option>
  42.  <option value='img src=\"images/ranks/SFC.png\" alt=\"Sergeant First Class\" '>Sergeant First Class</option>
  43.  <option value='img src=\"images/ranks/SGT.png\" alt=\"Sergeant\" '>Sergeant</option>
  44.  <option value='img src=\"images/ranks/PFC.png\" alt=\"Private\" '>Private</option>
  45. </select><br />
  46. Active: <select>
  47. <option value=\"2\">Suspended</option>
  48. <option value=\"1\">Active</option>
  49. <option value=\"0\">Pending</option>
  50. </select>
  51. <input type=\"Submit\" value=\"Update\">
  52. </form>";
  53.  
  54. ++$i;
  55. }
  56. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top