1
I have a DAO class that contains all the methods to execute. But when the user enters his access, he makes a select of the bank bringing his customers.
Inside the while I put
My question is: how will I call the DAO class and the delete function it contains in it?
Example I’ve done and it didn’t work
echo "<td><a href='UsuarioDAO.php?excluir=$id'><button>Clique</button></td> </a>";
class UsuarioDAO(){
public function excluir(){
//codigo vem aqui
}
}
I think we need to get the value passed through the URL via
get
....– MagicHat
Another detail is that there is a syntax error in html....
– MagicHat