hele koden vis det hjælper
<? if(defined('LOGGED')){ ?>
<td valign='top'>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%" bgcolor="#081f1c" height="8px"></td>
</tr>
</table>
<table bgcolor="#283f3c" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td background="images/bb.jpg">Raid</td>
</tr>
</table>
<table style="border-right:1px #485f5c solid;border-left:1px #485f5c solid;border-bottom:1px #485f5c solid;" bgcolor="#283f3c" cellspacing="3" cellpadding="0" width="100%">
<tr>
<td style="border:1px #485f5c solid;">
<table cellpadding="0" cellspacing="0" width="400px" align="center">
<tr>
<td align="center" style="border-bottom:1px gray dotted;">
Tid Tilbage
</td>
<td align="center" style="border-bottom:1px gray dotted;">
Dato
</td>
<td align="center" style="border-bottom:1px gray dotted;">
Instents
</td>
<td align="center" style="border-bottom:1px gray dotted;">
Join
</td>
<td align="center" style="border-bottom:1px gray dotted;">
Se tilmelte
</td>
</tr>
<?
$SQL = "SELECT * FROM wow_raid WHERE date >= now() ORDER BY `id` DESC";
$loadin = mysql_query($SQL) or die("There is an Error in the database");
while ($Get = mysql_fetch_object($loadin)){
/*
declare target date; source:
http://us.imdb.com/ReleaseDates?0121766 ;
*/
$dayy = $Get->day; // Day of the countdown
$monthy = $Get->month; // Month of the countdown
$yeary = $Get->year; // Year of the countdown
$houry = $Get->hour; // Hour of the day (east coast time)
$eventy = $Get->event; //event
$calculation = ((mktime ($houry,0,0,$monthy,$dayy,$yeary) - time(void))/3600);
$hours = (int)$calculation;
$days = (int)($hours/24);
/*
mktime()
http://www.php.net/manual/en/function.mktime.php time()
http://www.php.net/manual/en/function.time.php (int)
http://www.php.net/manual/en/language.types.integer.php */
?>
<tr>
<td align="center">
<?=$hours?> Timer
</td>
<td align="center">
<?=$Get->date?>
</td>
<td align="center">
<?=$Get->name?>
</td>
<form action="?p=pages/raid&step=1" method="post">
<td align="center">
<input style="background:; border:0px gray solid;" type="submit" name="submit" value="X">
<input name="date" type="hidden" value="<?=$Get->date?>">
</td>
</form>
<form action="?p=pages/raid&step=2&dato=<?=$Get->date?>" method="post">
<td align="center">
<input style="background:; border:0px gray solid;" type="submit" name="submit" value="Vis">
</td>
</form>
</tr>
<? }?>
<?
if($_GET['step'] == "1"){ //-- ```````````````````````````````Subdomain Registration
$username = $_SESSION['username'];
$date = $_POST['date'];
mysql_query("INSERT INTO wow_raidin (
username,
date
) VALUES (
'$username',
'$date'
)") or die (Java::Alert("MySQL Error: ".mysql_error()));
Java::Alert("Du er nu tilmælt dette raid");
Java::GoToURL("
http://thedanishforce.webhosteu.com?p=pages/raid");
}?>
<? if($_GET['step'] == "2"){?>
<tr>
<td colspan="5" style="border-top:1px gray dotted;">
Tilmælte
</td>
</tr>
<?
$dato == $_GET['dato'];
$SQL = "SELECT * FROM wow_raidin WHERE date = '$dato' ORDER BY `id` DESC";
$loadin = mysql_query($SQL) or die("There is an Error in the database");
while ($Get = mysql_fetch_object($loadin)){
?>
<tr>
<td align="center">
<?=$Get->username?>
</td>
</tr>
<? }}?>
</table>
</td>
</tr>
</table>
</td>
<? }?>