Quote:
Originally Posted by Dormilich
your if() condition in the userLogin() method won’t work out. your result set contains only one row that is processed by the first call to fetchColumn(). hence the second call will return false (no more rows to fetch from) and all the array accesses will cause a warning.
|
so, something like this? or would it just be better to use $valid (even though it is oddly named in this case)
PHP Code:
$mem = $stmt->fetchColumn(1);
and I finally found the original script:
http://forum.codecall.net/topic/6977...#axzz2CKPnnQCz