SHARE
TWEET

Untitled

a guest Jul 21st, 2017 116 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. include("scripts/login.php");
  3. include("includes/header1.inc");
  4. ?>
  5. <title>Syndicate Jailers - Edit</title>
  6. <?php include("includes/header2.inc"); ?>
  7.  
  8. <body>
  9. <?php
  10. $tag=$_GET['tag'];
  11. $loc="localhost";
  12. $username="ltaradio_sj1";
  13. $password="123";
  14. $database="ltaradio_sj1";
  15. $link = mysql_connect($loc,$username,$password);
  16. mysql_connect($loc,$username,$password);
  17.  
  18. @mysql_select_db($database) or die( "Unable to select database");
  19. $query="SELECT * FROM members WHERE tag='$tag'";
  20. $result=mysql_query($query);
  21. $num=mysql_numrows($result);
  22. mysql_close();
  23.  
  24. $i=0;
  25. while ($i < $num) {
  26. $tag=mysql_result($result,$i,"tag");
  27. $email=mysql_result($result,$i,"email");
  28. $points=mysql_result($result,$i,"points");
  29. $referral=mysql_result($result,$i,"referral");
  30. $age=mysql_result($result,$i,"age");
  31. $rank=mysql_result($result,$i,"rank");
  32. $active=mysql_result($result,$i,"active");
  33. $avatar=mysql_result($result,$i,"avatar");
  34.  
  35. if ($active == 0) {
  36. $status = '<font color="yellow">Pending</font>';
  37. }
  38. elseif ($active == 1) {
  39. $status = '<font color="green">Active</font>';
  40. }
  41. elseif ($active == 2) {
  42. $status = '<font color="red">Suspended</font>';
  43. }
  44. }
  45. ?>
  46. <?php include("includes/header3.inc"); ?>
  47.                     <div class="main_news_con">
  48.                           <div class="main_news_post">
  49.                           <div class="main_news_post_img">
  50.                               <img src="images/news_post_img.jpg" alt="" />
  51.                             </div>
  52.                             <div class="main_news_post_text_con">
  53.                               <div class="main_news_post_text_details">
  54.                                   <div class="main_news_post_text_title">
  55.                                       <a href="#">Edit Profile</a></div>
  56.                                     <div class="main_news_post_text_date">
  57.                                       2/7/2011</div>
  58.                                     <div class="main_news_post_text_comments">
  59.                                       Posted by Alex</div>
  60.                                     <div class="clr"></div>
  61.                                 </div>
  62.                                 <div class="main_news_post_text">
  63.                                   <p>
  64.  
  65.       <form action="scripts/edit.php" method="post">
  66.                 <table width="" align="" style="border-collapse: collapse;">
  67. <?php echo "    
  68.                 <tbody>
  69.     <tr>
  70.       <td>GamerTag<br />
  71.         </td>
  72.       <td> $tag
  73.     <input type='hidden' value='$tag' name='ud_tag' /> <br />
  74.         </td>
  75.     </tr>
  76.     <tr>
  77.       <td>Email Address<br />
  78.         </td>
  79.       <td><input type='text' name='ud_email' value='$email'><br />
  80.         </td>
  81.     </tr>
  82.     <tr>
  83.       <td>Gamer Points<br />
  84.         </td>
  85.       <td><input type='text' name='ud_points' value='$points'><br />
  86.         </td>
  87.     </tr>
  88.     <tr>
  89.       <td>Referral<br />
  90.         </td>
  91.       <td> $referral <input type='hidden' value='$referral' name='ud_referral'><br />
  92.         </td>
  93.     </tr>
  94.     <tr>
  95.       <td>Age<br />
  96.         </td>
  97.       <td><input type='text' name='ud_age' value='$age'><br />
  98.         </td>
  99.     </tr>
  100.     <tr>
  101.       <td>Rank<br />
  102.         </td>
  103.       <td>$rank <input type='hidden' value='$rank' name='ud_rank'><br />
  104.         </td>
  105.     </tr>
  106.     <tr>
  107.       <td>Status<br />
  108.         </td>
  109.       <td> $status <input type='hidden' value='$status' name='ud_status'><br />
  110.         </td>
  111.     </tr>
  112.     <tr>
  113.       <td>Avatar<br />
  114.         </td>
  115.       <td><input type='text' name='ud_email' value='$avatar'> <br />
  116.         </td>
  117.     </tr>
  118.     <tr>
  119.       <td style=\"\" colspan=\"1\">Password (Must enter)<br />
  120.         </td>
  121.       <td style=\"\" colspan=\"1\"><input type='text' name='ud_password' ></td>
  122.     </tr>
  123.   </tbody>
  124. </table> </form> "; ?>
  125.        <br />
  126.                     </p>
  127.                                 </div>
  128.                             </div>
  129.                             <div class="clr"></div>
  130.                         </div>
  131.                     </div>
  132.                 </div>
  133.                <?php include("includes/sidebar.inc"); ?>
  134.                 </div>
  135.                 <div class="clr"></div>
  136.             </div>
  137.  
  138.                 <?php include("includes/footer.inc"); ?>
  139.                 <div class="clr"></div>
  140.             </div>
  141.         </div>
  142.     </div>
  143. </div>
  144. </body>
  145. </html>
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