View Single Post
Old 11-20-2012, 07:26 AM   PM User | #12
Dormilich
Senior Coder

 
Dormilich's Avatar
 
Join Date: Jan 2010
Location: Behind the Wall
Posts: 2,908
Thanks: 10
Thanked 293 Times in 289 Posts
Dormilich is on a distinguished road
second code block: Users constructor expects an array ...

first code block:
- $mem = $stmt->fetch(); no more data to fetch, returning false.
- username already exists in the class
- SQL, no need of a LIMIT 1 if you have proper DB constraints (e.g. unique username)

third code block: Users->register() does not accept parameters
__________________
please post your code wrapped in [CODE] [/CODE] tags
Dormilich is offline   Reply With Quote