Advertisement
Guest User

Untitled

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