Answer the question
In order to leave comments, you need to log in
How to check the success of a database query?
I have a Select request, how to check if the request is successful? Didn't find an answer on google.
Answer the question
In order to leave comments, you need to log in
if (($res = mysql_query
("select ...")) === FALSE) - pure error check, or after mysql_query check for mysql_err !=
0 net/manual/ru/function.mysql-query.php
For mysqli, pdo - about the same and in the same place.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question