colsulta SELECT
that a single record should return if it exists,
what's valid with
if ($stmtStore->fetchColumn ()==0){...}
and the redultado is true
and the valid one with
if ($stmtStore->columnCount ()==0){...}
and the result is false
according to the definitions
columnCount - Returns the number of columns in a result set.
fetchColumn - Returns a single column of the next row in a result set.
I do not understand the description
What I need is to validate if the SELECT
returns the row or not, I have already used the function fetchColumn
in the development of an application and I get doubts.
Thank you.