Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php //Start the Session
- session_start();
- require('connect.php');
- //3. If the form is submitted or not.
- //3.1 If the form is submitted
- if (isset($_POST['username']) and isset($_POST['password'])){
- //3.1.1 Assigning posted values to variables.
- $username = $_POST['username'];
- $password = $_POST['password'];
- $scores = $_POST['scores'];
- //3.1.2 Checking the values are existing in the database or not
- $query = "SELECT * FROM `user`";
- $result = mysqli_query($connection, $query) or die(mysqli_error($connection));
- $count = mysqli_num_rows($result);
- ?>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement