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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -