How to check the existence of a record in mysql without returning the result set? There is a request, for example:
mysqli_query("SELECT id FROM table WHERE id = 1;")
Such a query will return the result set, and is it possible to somehow simply check the existence of a string?
mysqli_query("SELECT count(id)>0 FROM table WHERE id = 1;")
will answerTrue
orFalse
- Saidolimtrue/false
? I don’t mind ... just want to understand ... maybe then I’ll make checks differently ... - cyadvert