Originally Posted by Dormilich
$valid only gives you the content of the first field. you would need a complete ->fetch() to get all data.
in that original code, all that
$valid is used for is to check, whether there are data returned. that these data are superfluous in the concept is a mistake often made. (the well-known problem of the SQL wildcard character *).
Ah, should have known that based on ->fetchColumn()
. Well, while I was researching fetch(), I stumbled upon fetchAll(). So, my question is what is the difference? Would you say they are interchangeable?