Now,I want to:
1-update the information(let’s say the path of a photo)
2-update the information(one of the employees changed their name)
3-how to connect “search” button on html page and this database?I know it goes trough $_POST,but nothing worked so far.
Well if you have some kind of registration/login system then you can use the id of the person (or even have an administrator) change that for you could use the unique id and security level to update that record.
for example
if ($user['id] === $employee['user_id'] || $user['security_level'] === 'admin' ) {
/* Edit Record */
}
I don’t see any code where you open a connection to the database, is that in a separate include file? You also don’t use the value of the $_POST variable in your query. Is it OK to use the query as you type it, without spaces around the *? I wonder if it might have a parse error.