Example #1
0
    background-color:black;
    color:white;
    clear:both;
    text-align:center;
    padding:5px;
}
</style>
</head>
<body>

<?php 
$id = 100;
session_start();
require_once '../_includes/include_all.php';
if (isset($_GET['logout'])) {
    teen_patti::game_end();
}
$con = mysqli_connect("localhost", "vikash", "kisku", "play_cards");
if (isset($_GET['set'])) {
    (new teen_patti($con))->Accept_game_request($id);
}
if (!isset($_SESSION['game_id'])) {
    ?>
 <form action="<?php 
    echo htmlspecialchars($_SERVER["PHP_SELF"]);
    ?>
" method="post">
 <input name="players" type="text"/>
 <input type="submit" value="start the game"/>
 </form>
 <?php