V
V
Vladimir Volokhov2020-10-10 23:41:04
SQL
Vladimir Volokhov, 2020-10-10 23:41:04

Why is the SQL query not being sent?

$register = mysqli_query($connect,"INSERT INTO `agreement`(`vk`, `time`) VALUES (".$from_id.",".$time."); INSERT INTO `FOUTuser`(`vk`, `first_name`, `last_name`, `photo_id`) VALUES (".$from_id.",'".$first_name."','".$last_name."','".$photo_id."')");


I tried to send the same request (already with entered data) to the DB itself. Everything passed. But still, for some reason the code above doesn't work.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Bogdan Erolskiy, 2020-10-11
@B-Erolskiy

What is the result of the request? What errors does it output?
Most likely, the matter is in the variable $connect, the connection to the database is not established. It is also worth checking the correctness of the data included directly in the query string.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question