in reply to Error in quoting?
Without more details, of course, my only guess off hand is that you are not quite getting an exact match on the user_name; again, viewing the log would help.
Also, you should try to make sure to catch errors from the db_connect() and the prepare() methods as well; the former most important as if you can't connect to the DB, your code will fail, and for the prepare() to help you catch SQL errors before they are executed.
|
|---|