Authentication in php MySQL -


i using sql , php code, user table have password column char(32) , salt column char(64)

now php code trying authenticate using below code

$this->_authadapter = new zend_auth_adapter_dbtable(     $db,     engine_api::_()->getitemtable('user')->info('name'),     'user_id',     'password',     "md5(concat('".$salt."', ?, salt)))"    ); 

but gives me following error: supplied parameters zend_auth_adapter_dbtable failed produce valid sql statement, please check table , column names validity.

any suggestion??


Comments

Popular posts from this blog

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -