Skip to content

Commit 982f424

Browse files
authored
Merge pull request #13 from PauloASilva/fix/api5
fix(api5:createUser): MySQL INSERT statement
2 parents 5342f59 + 5560ac8 commit 982f424

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vapi/api5/createUser.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function validateAll()
4040
$mobileno=mysqli_real_escape_string($dbconn,$mobileno);
4141

4242

43-
$query="INSERT into api5users values('','$username','$password','$name','$address','$mobileno')";
43+
$query="INSERT into api5users (username, password, name, address, mobileno) values ('$username','$password','$name','$address','$mobileno')";
4444

4545
if(mysqli_query($dbconn,$query)){
4646
$latest_id=mysqli_insert_id($dbconn);

0 commit comments

Comments
 (0)