Near Complete Version
website is now finished with the exception of the captcha, I am having issues authenticating the state of the captcha
This commit is contained in:
22
public_html/includes/analytics/analytics.php
Normal file
22
public_html/includes/analytics/analytics.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
$conn = new mysqli("localhost", "lukejelse04", "C3ssNa182", "snexo");
|
||||
|
||||
if($conn->connect_errno){
|
||||
|
||||
echo "<script>console.log('Failure to connect to database')</script>";
|
||||
|
||||
}else{
|
||||
|
||||
$dateTime = date('d/m/Y H:i:s');
|
||||
|
||||
echo "<h6> $dateTime </h6>";
|
||||
|
||||
$sqlquery = "INSERT INTO VisitTime (DateTime) VALUES ('$dateTime')";
|
||||
|
||||
$result = $conn -> query($sqlquery);
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
Reference in New Issue
Block a user