Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
$t_start = time();
echo (time() - $t_start) . ' Sekunden';
<?php
$offset = ( isset($_GET['offset']) && !empty($_GET['offset']) && is_int(intval($_GET['offset'])) )
? intval($_GET['offset'])
: 0;
$rowcount = ( isset($_GET['rowcount']) && !empty($_GET['rowcount']) && is_int(intval($_GET['rowcount'])) )
? intval($_GET['rowcount'])
: 20;
function getmicrotime() {
list($usec, $sec) = explode(" ",microtime());
return( (float)$usec + (float)$sec );
}
$time_start = getmicrotime();
$query = "
SELECT
`name`,
`visits`,
`uniques`
FROM
`tabelle`
LIMIT
".$offset.", ".$rowcount."
";
$result = mysql_query($query);
while( $kategorie = mysql_fetch_array($result, MYSQL_ASSOC) ) {
echo ' <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#0099CC">
<tr>
<td><img src="bar.gif" width="5" height="18"></td>
<td><b><a href="projekt_detail.php?kat_id=' , $kat_id , '">' , htmlentities($kategorie['name']) , '</a></b></td>
<td>' , $kategorie['visits'] , '</td>
<td>' , $kategorie['uniques'] , '</td>
<td>otto</td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>';
}
$time_end = getmicrotime();
echo '<a href="?offset='.($offset+$rowcount).'" style="display:block">nächsten '.$rowcount.' Einträge</a>';
echo '<p>Diese Abfrage dauerte '.sprintf("%.3f", $time_end - $time_start).' Sekunden.</p>';
?>