你好,我是php和mysqli的初学者
警告:mysqli_query()需要至少2个参数,在第15行的C:\ wamp64 \ www \ index.php中给出1
警告:mysqli_query():第16行的C:\ wamp64 \ www \ index.php中的空查询
<?php
$connect = mysqli_connect("localhost","root","","test-gam");
if(!$connect){
echo mysqli_errno();
}
if ($_POST['']){
$Nome = $_POST['Nome'];
$Prenom = $_POST['Prenom'];
$Username = $_POST['Username'];
$Password = $_POST['Password'];
$Email = $_POST['Email'];
$Tell = $_POST['Tell'];
$Profl = $_POST['Profl'];
$persone = mysqli_query($connect"INSERT INTO 'persone'('Nome','Prenom','Username','Password','Email','Tell','Profl')
values('$Nome','$Prenom','$Username','$Password','$Email','$Tell','$Profl')");
$query= mysqli_query($connect,$persone);
?>
<form name="db" method="post">
<fieldset>
<label for="NOME">NOME: </label><input type="text" name="Nome"/></br>
<label for="PRENOM">PRENOM: </label><input type="text" name="Prenom"/></br>
<label for="USERNAME">Username: </label><input type="text" name="Username"/></br>
<label for="PASSWORD">PASSWORD: </label><input type="text" name="Password"/></br>
<label for="EMAIL">EMAIL: </label><input type="text" name="Email"/></br>
<label for="TELL">TELL:</label><input type="text" name="Tell"/></br>
<select name="Profl">
<option>Admin</option>
<option>Admin1</option>
<option>Admin2</option>
</select>
<input type="submit" name="ajout" value="ajouter"/>
</fieldset>
</form>
&#13;