====== Meeting Notes: Sat 6th April 2019 ====== We worked through some demos of how to connect to a database and pull out some data with PHP. Here is the code we used: **Note: This isn't functioning code. It was used as an example to talk through what was going on** query($sql); $rows = $rs->fetchAll(PDO::FETCH_ASSOC); echo "
    "; foreach($rows as $row) { echo "
  1. "; echo $row['surname'].", ".$row['forename']; echo " (".date("D jS M Y", strtotime($row['date_added'])); echo ")"; echo "
  2. "; } echo "
"; ?>