Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- $servername = "localhost";
- $username = "root1";
- $password = "root1";
- $dbname = "galabal";
- $conn = mysqli_connect($servername, $username, $password, $dbname);
- $sql = "SELECT * FROM manillen";
- $result = $conn->query($sql);
- if ($result->num_rows > 0) {
- while ($row = $result->fetch_assoc()) {
- if($row["player"]==1){
- header("Location: http://example.com/myOtherPage.php");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement