Skip to content

Commit

Permalink
slide lezione 9
Browse files Browse the repository at this point in the history
  • Loading branch information
martiele committed Apr 14, 2020
1 parent ff7b21c commit 056dcb2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Lezione 8/php-pdo-crud-vuoto/export.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,18 @@

//Apri un file in scrittura
$file_aperto = fopen('export_posts.csv', 'w');
//


if ($result->rowCount() > 0) {
// se voglio “ciclare” tutti i risultati posso farlo così:
while($row = $result->fetch(PDO::FETCH_ASSOC) ) {

/*
var_dump($row);
die();
*/
fputcsv($file_aperto, $row);

//
}
}

Expand Down
1 change: 1 addition & 0 deletions Lezione 9/Cookies & JSON.gslides
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"url": "https://docs.google.com/open?id=1tlodYkeaMbYdnDqMnybwSwgS0Ydx1LTC4DUnDiC18VI", "doc_id": "1tlodYkeaMbYdnDqMnybwSwgS0Ydx1LTC4DUnDiC18VI", "email": "[email protected]"}

0 comments on commit 056dcb2

Please sign in to comment.