Answer the question
In order to leave comments, you need to log in
SQL query $_GET not working, why?
The situation is this. I'm doing some kind of Blog (according to the Howdy lesson). In the video tutorial, he creates the articles.php page, and on the main page he gives the links the following address href="name/articles.php?id=number", and in the articles.php itself he writes the request
$name = mysqli_query($connect, 'SELECT * FROM `articles` WHERE `id` = ' . (int) $_GET['id']);
// $connect переменная соединения с базой.
Answer the question
In order to leave comments, you need to log in
I solved the problem by simply removing the slash before articles from href="/articles.php..."
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question