waarom wordt file_put_contents niet onderlijnt in de code? Het is nochtans ook een functie.
<?php
# open je tekst bestand
$bestand = 'naam.txt';
# Open de lijst die je al hebt in je bestand
$lijst = file_get_contents($bestand);
# Voeg je record toe
$lijst .= $row['woon'].'\n';
# schrijf alles terug naar het bestand
file_put_contents($bestand, $lijst);
?>
2.269 views