Originally Posted by elitis
or would it just be better to use $valid (even though it is oddly named in this case)
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
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 *).