Esempio n. 1
0
	<div id="footer">
		<?php 
$dateAndTime = new dateAndTime();
echo "IP-adresse: <b>" . $ip . "</b>";
echo "<br />";
echo "Dato: <b>" . $dateAndTime->getDate() . "</b>";
echo "<br />";
echo "Tid: <b>" . $dateAndTime->getTime() . "</b>";
?>
	</div>
</body>
</html>
Esempio n. 2
0
 public static function saveSearchAddress($ip, $street_address, $postal_code)
 {
     global $db;
     $dateAndTime = new dateAndTime();
     $date = $dateAndTime->getDate();
     $time = $dateAndTime->getTime();
     // SQL-spørring for å lagre utførte søk
     $sql = "INSERT INTO search_addresses (ip, date, time, street_address, postal_code)\n\t\t\tVALUES ('" . $ip . "', '" . $date . "', '" . $time . "', '" . $street_address . "', '" . $postal_code . "');";
     $result = $db->query($sql);
 }