Answer the question
In order to leave comments, you need to log in
Should I use LIMIT 1?
Do I need to use LIMIT 1 if, for example, it gets a post by id.
mysqli_query($connection, "SELECT * FROM `posts` WHERE `id` = '$id'");
mysqli_query($connection, "SELECT * FROM `posts` WHERE `id` = '$id' LIMIT 1");
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question