Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- if (!isset($_SESSION['id'])){
- header("location:main_login.php");
- }
- ?>
- <html>
- <body>
- Login Successful! <br></br>
- <?php
- echo "id: $_SESSION['id']";
- ?>
- <? $query="SELECT * FROM $tbl_name WHERE username='$myusername' and password='$mypassword'";
- $result=mysql_query($query);
- //$num = $result
- //$i=0
- //while $i < $num
- echo $result; ?>
- </body>
- </html>
Add Comment
Please, Sign In to add comment