Posted by:
fender
(---.red-83-33-131.dynamicip.rima-tde.net)
Yes I tried every things
I start the laptop again!!
This the export of the user lilly by phpMyAdmin:
GRANT ALL PRIVILEGES ON *.* TO 'lilly'@'%' IDENTIFIED BY PASSWORD '*6E5F0F05F71F797A05EF10BAAFB911F209B1A332' WITH GRANT OPTION;
This is the code of the index.php
$server = "localhost";
$user = "lilly";
$pass = "xxxx";
$datenbank = "web_counter";
$web= "xxxxxxx";
$seite="a_index";
$ip = $_SERVER['REMOTE_ADDR'];
$datum = date("d.m.Y - H:i \h"
;
// Create connection
$conn = mysqli_connect($server, $user, $pass, $datenbank);
// Check connection
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
$sql = "INSERT INTO count2 (web, seite, ip, datum)
VALUES ('$web', '$seite', '$ip', '$datum')";
if (mysqli_query($conn, $sql)) {
# echo "New record created successfully";
} else {
echo "Error: " . $sql . "<br>" . mysqli_error($conn);
}
mysqli_close($conn);