Beste,
Ik heb hier wacht tijden voor in de news.php
hier staat in hoelang je nog moet wachten op een misdaad, auto stelen etc.
PHP
<?
$werken2 = mysql_query("SELECT *,UNIX_TIMESTAMP(`werken`) AS `werken`,0 FROM `users` WHERE `login`='$data->login'");
$werken1 = mysql_fetch_object($werken2);
$datijd_werk = $data->werktijd;
$countdown_werk = $werken1->werken+$datijd_werk-time();
$steel2 = mysql_query("SELECT *,UNIX_TIMESTAMP(`steel`) AS `steel`,0 FROM `users` WHERE `login`='$data->login'");
$steel1 = mysql_fetch_object($steel2);
$datijd_steel = $data->steeltijd;
$countdown_steel = $steel1->steel+$datijd_steel-time();
$rip2 = mysql_query("SELECT *,UNIX_TIMESTAMP(`riptijd`) AS `riptijd`,0 FROM `users` WHERE `login`='$data->login'");
$rip1 = mysql_fetch_object($rip2);
$datijd_rip = $data->riptijd;
$countdown_rip = $rip1->riptijd+$datijd_rip-time();
$autojat2 = mysql_query("SELECT *,UNIX_TIMESTAMP(`autojattijd`) AS `autojattijd`,0 FROM `users` WHERE `login`='$data->login'");
$autojat1 = mysql_fetch_object($autojat2);
$datijd_autojat = $data->autojatten;
$countdown_autojat = $autojat1->autojattijd+$datijd_autojat-time();
$route662 = mysql_query("SELECT *,UNIX_TIMESTAMP(`route66`) AS `route66`,0 FROM `users` WHERE `login`='$data->login'");
$route661 = mysql_fetch_object($route662);
$datijd_route66 = 900;
$countdown_route66 = $route661->route66+$datijd_route66-time();
$hoeren2 = mysql_query("SELECT *,UNIX_TIMESTAMP(`hoerentijd`) AS `hoerentijd`,0 FROM `users` WHERE `login`='$data->login'");
$hoeren1 = mysql_fetch_object($hoeren2);
$datijd_hoeren = $data->hoerentijd;
$countdown_hoeren = $hoeren1->hoerentijd+$datijd_hoeren-time();
$geluksrad2 = mysql_query("SELECT *,UNIX_TIMESTAMP(`draaitijd`) AS `draaitijd`,0 FROM `users` WHERE `login`='$data->login'");
$geluksrad1 = mysql_fetch_object($geluksrad2);
$datijd_geluksrad = $data->draaitijd;
$countdown_geluksrad = $geluksrad1->draaitijd+$datijd_geluksrad-time();
$hogerlager2 = mysql_query("SELECT *,UNIX_TIMESTAMP(`hltijd`) AS `hltijd`,0 FROM `users` WHERE `login`='$data->login'");
$hogerlager1 = mysql_fetch_object($hogerlager2);
$datijd_hogerlager = $data->hltijd;
$countdown_hogerlager = $hogerlager1->hltijd+$datijd_hogerlager-time();
?>
<div class="title_bg">
<div class="title">Wachttijden</div>
</div>
<div style="background-color:#dbd2b7; padding:10px; padding-top:4px;">
<table cellpadding="0" cellspacing="0" width="100%"><tr><td>
<table width="100%" class="mod_list" cellspacing="2" cellpadding= "2">
<tr>
<td align='center'><div align="center"></div></td>
<td><div align="center"><strong>Activiteit</strong></div></td>
<td align='center'><div align="center"></div></td>
<td><div align="center"><strong>Wachttijd</strong></div></td>
<td align='center'><div align="center"></div></td>
<td><div align="center"><strong>Activiteit</strong></div></td>
<td align='center'><div align="center"></div></td>
<td><div align="center"><strong>Wachttijd</strong></div></td>
</tr>
<tr>
<td width="5px" align="center"><div align="center"><img src="images/icons_gif/bomb.gif"></div></td>
<td><div align="center"><b><a href="index.php?a=work">Werken</a></b></div></td>
<td width="5px" align="center"><div align="center"><img src="images/icons_gif/time.gif"></div></td>
<td><div align="center"><b><font id="count_werk"></font></b></div></td>
<td width="5px" align="center"><div align="center"><img src="images/icons_gif/bomb.gif"></div></td>
<td><div align="center"><b><a href="index.php?a=mod_crim_route66">Route 66</a></b></div></td>
<td width="5px" align="center"><div align="center"><img src="images/icons_gif/time.gif"></div></td>
<td><div align="center"><b><font id="count_route66"></font></b></div></td>
</tr>
<tr>
<td width="5px" align="center"><div align="center"><img src="images/icons_gif/bomb.gif"></div></td>
<td><div align="center"><b><a href="index.php?a=crimes">Misdaden</a></b></div></td>
<td width="5px" align="center"><div align="center"><img src="images/icons_gif/time.gif"></div></td>
<td><div align="center"><b><font id="count_steel"></font></b></div></td>
<td width="5px" align="center"><div align="center"><img src="images/icons_gif/bomb.gif" alt="" /></div></td>
<td><div align="center"><b><a href="index.php?a=redlight">Bitches zoeken</a></b></div></td>
<td width="5px" align="center"><div align="center"><img src="images/icons_gif/time.gif"></div></td>
<td><div align="center"><b><font id="count_hoeren"></font></b></div></td>
</tr>
<tr>
<td width="5px" align="center"><div align="center"><img src="images/icons_gif/bomb.gif"></div></td>
<td><div align="center"><b><a href="index.php?a=ripdeal">Ripdeal</a></b></div></td>
<td width="5px" align="center"><div align="center"><img src="images/icons_gif/time.gif"></div></td>
<td><div align="center"><b><font id="count_rip"></font></b></div></td>
<td width="5px" align="center"><div align="center"><img src="images/icons_gif/bomb.gif" alt="" /></div></td>
<td><div align="center"><b><a href="index.php?a=fortune">Geluksrad</a></b></div></td>
<td width="5px" align="center"><div align="center"><img src="images/icons_gif/time.gif"></div></td>
<td><div align="center"><b><font id="count_geluksrad"></font></b></div></td>
</tr>
<tr>
<td width="5px" align="center"><div align="center"><img src="images/icons_gif/bomb.gif"></div></td>
<td><div align="center"><b><a href="index.php?a=stealcars">Auto stelen</a></b></div></td>
<td width="5px" align="center"><div align="center"><img src="images/icons_gif/time.gif"></div></td>
<td><div align="center"><b><font id="count_autojat"></font></b></div></td>
<td width="5px" align="center"><div align="center"><img src="images/icons_gif/bomb.gif" alt="" /></div></td>
<td><div align="center"><b><a href="index.php?a=higherlower">Hoger lager</a></b></div></td>
<td width="5px" align="center"><div align="center"><img src="images/icons_gif/time.gif"></div></td>
<td><div align="center"><b><font id="count_hogerlager"></font></b></div></td>
</tr>
</table>
</td></tr></table>
</div>
<table width='100%' cellspacing='2' cellpadding='2'>
<tr>
<td class='content_bottom'></td>
</tr>
</table>
<script language="javascript">
countdown('<?echo$countdown_werk;?>','count_werk', '');
countdown('<?echo$countdown_steel;?>','count_steel', '');
countdown('<?echo$countdown_overval;?>','count_rip', '');
countdown('<?echo$countdown_autojat;?>','count_autojat', '');
countdown('<?echo$countdown_route66;?>','count_route66', '');
countdown('<?echo$countdown_hoeren;?>','count_hoeren', '');
countdown('<?echo$countdown_geluksrad;?>','count_geluksrad', '');
countdown('<?echo$countdown_hogerlager;?>','count_hogerlager', '');
</script>
Toon Meer
Dat was het dan:)