You can set database table prefix in codeigniter. To do this,open the database.php file in config folder or application and modify these,
$db[‘default’][‘dbprefix’] = ‘web_admin’; // change to any name
Now when you write these,
$query = $this->db->get_where(‘_admin’, array(‘admin_name’ => $user_name,’password’ => do_hash($user_pass, ‘md5’)));
It will try to find web_admin_admin table of your database.
Advertisements
A Database Error Occurred
Error Number: 1146
it occur above error
LikeLike
I dont understand your comment, can you please make it more clear?
LikeLike