passwdgen/update.php

11 lines
243 B
PHP
Raw Normal View History

<?php
$site = $_POST['site'];
$db = new mysqli('localhost', 'root', '', 'temp');
$query = $db->prepare("INSERT IGNORE INTO pg_sites (site) VALUES(?)");
$query->bind_param('s', $site);
$query->execute();
$query->close();
?>
{}