<?php
session_start();
header("Content-type:text/html;charset=utf-8");
$link = mysqli_connect('localhost','000000','000000','000000');
if (!$link) {
die("连接失败:".mysqli_connect_error() );
}
$sql = "ログインから * を選択";
$result = mysqli_query($link, $sql);
$ rows = mysqli_fetch_array($result);
$username = $_POST['username'];
$password = $_POST['password
echo "<script>alert('登録成功');window.location.href='yonghu.html'</script>";
}
}
?>