Guest User

Untitled

a guest
Sep 9th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. <?php
  2. session_start();
  3. if (!isset($_SESSION['id'])){
  4. header("location:main_login.php");
  5. }
  6. ?>
  7.  
  8. <html>
  9. <body>
  10. Login Successful! <br></br>
  11.  
  12. <?php
  13. echo "id: $_SESSION['id']";
  14. ?>
  15.  
  16. <? $query="SELECT * FROM $tbl_name WHERE username='$myusername' and password='$mypassword'";
  17. $result=mysql_query($query);
  18. //$num = $result
  19. //$i=0
  20.  
  21. //while $i < $num
  22.  
  23. echo $result; ?>
  24.  
  25.  
  26. </body>
  27. </html>
Add Comment
Please, Sign In to add comment