标签:mysql his test use userinfo class user code val
<?php
$username = $_POST["username"];
$passcode = $_POST["passcode"];
# 一定要mysqli_connect
$con = mysqli_connect("jh.bux.org", "jh", "jhisjh", "mytest");
# 一定要加引号
$sql = "insert into userinfo (username, password) values (‘$username‘, ‘$passcode‘);";
mysqli_query($con, $sql);
mysql_close($con);
?>
标签:mysql his test use userinfo class user code val
原文地址:https://www.cnblogs.com/megachen/p/9898932.html