/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php Class Registreren { /** * Deze service meld nieuwe gebruikers aan in de database * @returns true of false (of het is gelukt of niet) * */ // Maak connectie met de d_b function Registreren() { } // Deze METHOD leest alle gebruikers uit function haalAlleGebruikers() { $sql = "SELECT * FROM `Gebruikers` ORDER BY `id` DESC;"; } // Deze METHOD voegt een nieuwe gebruiker toe function voegGebruikerToe($gebruikersnaam, $voornaam, $achternaam, $emailadres, $wachtwoord) { $sql = "INSERT INTO `Tut_Gebr1`.`gebruikers` ( `id` , `gebruikersnaam` , `voornaam` , `achternaam` , `emailadres` , `wachtwoord` ) VALUES ( NULL , '$gebruikersnaam', '$voornaam', '$achternaam', '$emailadres', '$wachtwoord' );"; } } ?>
Comments
