This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
error_reporting(E_ERROR | E_WARNING | E_PARSE); | |
class Shoutbox { | |
public $response; | |
public function Shoutbox($nick = null, $msg = null, $op = null) { | |
if(!$nick && !$msg && $op == 'tick') { | |
$this->returnShouts(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php part | |
$result = $db->query("SELECT * FROM r_winners GROUP BY date ORDER BY date DESC"); | |
while($rows = $result->fetch_assoc()){ | |
print"<table class='cashout' style='width:100%;'> | |
<th colspan='3'>".$rows['jackpot_name']." Winners</th> | |
<tr> | |
<td style='width:33%;'>".$rows['winner']."</td><td style='width:33%;'>$".$rows['amount']."</td><td style='width:33%;'>".date("m/d/Y", $rows['date'])."</td></tr> | |
</tr></table>"; | |
} | |
output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This Line is to be gotten rid of it is for error reporting // | |
error_reporting(E_ERROR | E_WARNING | E_PARSE); | |
// Include config file with database connection information // | |
include("config.php"); | |
include("header.php"); | |
// Get the username of the user currently logged in // | |
$username = $_SESSION['username']; |