View Single Post
Old 11-15-2012, 09:45 PM   PM User | #7
elitis
Regular Coder

 
Join Date: Sep 2010
Posts: 319
Thanks: 9
Thanked 6 Times in 6 Posts
elitis is an unknown quantity at this point
Quote:
Originally Posted by Dormilich View Post
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
__________________
Coding is a challenge, get used to it
Always remember to debug
Try the guess & check method
Break it down into simple steps
elitis is offline   Reply With Quote