(please specify the website or account you are asking about)
When I try to insert data it does not insert any data into the specified table.
(please share the FULL error message you see)
Other Information
(other information and details relevant to your question)
Welcome to infinityfree forum.
Add your MySQL Error Text and you can also add your query for testing purposes…
1 Like
There is no MYSQL error showing.
And the query is working perfectly on localhost.
$insert = “INSERT INTO detail (firstname,lastname,username,email,password,usertype,position,verified) VALUES(‘$fname’,‘$lname’,‘$username’,‘$email’,‘$passwordsalted’,‘$type’,‘$position’,‘$verified’)”;
$query = mysqli_query($conn,$insert);
Try running this code AFTER the mysqli_query
function, it will show any errors that were encountered while trying to execute the query:
echo 'Error: ' . mysqli_error($conn);
2 Likes
system
Closed
5
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.