.htaccess vs php/mysql for password protection

I building an admin panel for a website which will be maintained by a friend, I want to add the ability for the user to change his password, for this I would need to use the database to hold the password and a form-php to use it. Is this method less secure than .htaccess pw protection?