Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/228.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PHP escape_字符串返回0。注册系统 我把它修好了。Localhost PHPmyadmin将字符串转换为整数,整数转换为字符串。因为您没有检查表单是否已提交?是的,但我修复了它,因为Localhost PHPmyadmin字符串被设置为整数,整数_Php_Database - Fatal编程技术网

PHP escape_字符串返回0。注册系统 我把它修好了。Localhost PHPmyadmin将字符串转换为整数,整数转换为字符串。因为您没有检查表单是否已提交?是的,但我修复了它,因为Localhost PHPmyadmin字符串被设置为整数,整数

PHP escape_字符串返回0。注册系统 我把它修好了。Localhost PHPmyadmin将字符串转换为整数,整数转换为字符串。因为您没有检查表单是否已提交?是的,但我修复了它,因为Localhost PHPmyadmin字符串被设置为整数,整数,php,database,Php,Database,PHP escape_字符串返回0。注册系统 我把它修好了。Localhost PHPmyadmin将字符串转换为整数,整数转换为字符串。因为您没有检查表单是否已提交?是的,但我修复了它,因为Localhost PHPmyadmin字符串被设置为整数,整数被设置为字符串。 <?php $dbusername = "root"; $dbpassword = ""; $dbserver = "localhost"; $db = "data"; $con = mysqli_connect($db

PHP escape_字符串返回0。注册系统
我把它修好了。Localhost PHPmyadmin将字符串转换为整数,整数转换为字符串。

因为您没有检查表单是否已提交?是的,但我修复了它,因为Localhost PHPmyadmin字符串被设置为整数,整数被设置为字符串。
<?php
$dbusername = "root";
$dbpassword = "";
$dbserver = "localhost";
$db = "data";
$con = mysqli_connect($dbserver, $dbusername, $dbpassword, $db);
if($con->connect_error){
    die('Error ' . $con->connect_error);
}
$username = $_POST["username"];
$password = $_POST["password"];
$email = $_POST["email"];
$id = rand(100, 1000000);
$usernamea = $con->escape_string($username);
$passworda = $con->escape_string($password);
$emaila = $con->escape_string($email);
$ida = $con->escape_string($id);
$sql = "INSERT INTO logindata (usern, passw, email, id) Values('$usernamea', '$passworda', '$emaila', '$ida')";
$con->query($sql);
?>

<html>
<head>
<script Language="JavaScript" type="text/javascript">location.replace("../index.php")</script>
</head>
<body>

</body>
</html>