[php]
$username = $_POST[‘username’];
if (!empty($username)) {
echo “connecting”;
$mysqli = new mysqli(“mysql.shootmenow.me”, “mikaelletang”, “virtuonz”, “shootmenow_me”);
if ($mysqli->connect_errno) {
echo “Echec lors de la connexion à MySQL : ” . $mysqli->connect_error;
}
echo “connected”;
$username = $mysqli->real_escape_string($username);
$sql = “INSERT INTO bambuser_user (name, created_at) VALUES (‘$username’, NOW())”;
$result = $mysqli->query($sql);
if (!$result) {
echo “Echec lors de l’exécution de la requête : (” . $mysqli->errno . “) ” . $mysqli->error;
}
echo “queried”;
} else {
echo “Coming soon …”;
}
[/php]