Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function addBooking($obj){
- $voornaam = addslashes($obj['voornaam']);
- $achternaam = addslashes($obj['achternaam']);
- $adres = addslashes($obj['adres']);
- $postcode = addslashes($obj['postcode']);
- $gemeente = addslashes($obj['gemeente']);
- $mail = addslashes($obj['mail']);
- $datum = addslashes($obj['datum']);
- $uur = addslashes($obj['uur']);
- $aantal = addslashes($obj['aantal']);
- $sql = "INSERT INTO bookings (voornaam, achternaam, adres, postcode, gemeente, mail, datum, uur, aantal) VALUES ('$voornaam', '$achternaam', '$adres', '$postcode', '$gemeente', '$mail', '$datum', '$uur', '$aantal')";
- $result = mysql_query($sql);
- return $result;
- }
Add Comment
Please, Sign In to add comment