Advertisement
Guest User

PASI

a guest
Nov 10th, 2017
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. <?php //Start the Session
  2. session_start();
  3. require('connect.php');
  4. //3. If the form is submitted or not.
  5. //3.1 If the form is submitted
  6. if (isset($_POST['username']) and isset($_POST['password'])){
  7. //3.1.1 Assigning posted values to variables.
  8. $username = $_POST['username'];
  9. $password = $_POST['password'];
  10. $scores = $_POST['scores'];
  11. //3.1.2 Checking the values are existing in the database or not
  12. $query = "SELECT * FROM `user`";
  13.  
  14. $result = mysqli_query($connection, $query) or die(mysqli_error($connection));
  15. $count = mysqli_num_rows($result);
  16.  
  17. ?>
  18.  
  19. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement