Skip to content

Instantly share code, notes, and snippets.

@rcervera
Created December 13, 2021 13:28
Show Gist options
  • Save rcervera/4b4886c41d7bb7f2d588d8ba2ee5638c to your computer and use it in GitHub Desktop.
Save rcervera/4b4886c41d7bb7f2d588d8ba2ee5638c to your computer and use it in GitHub Desktop.
<?php
include_once 'Model.php';
class Usuaris extends Model{
protected $taula ="usuaris";
// Afegir mètode per afegir un nou usuari
// Afegir mètode per actualitzar les dades d'un usuari existent
// Crear mètode per validar si un usuari és correcte
// Passant l'username i el password per paràmetre
// El mètode retornarà true si l'usuari existeix o fals en cas contrari
public function valida($user,$pwd){
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment