diff options
Diffstat (limited to 'php/lib/csv.php')
-rw-r--r-- | php/lib/csv.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/php/lib/csv.php b/php/lib/csv.php index e98d37c..12dff67 100644 --- a/php/lib/csv.php +++ b/php/lib/csv.php @@ -5,7 +5,7 @@ * <code> * if ($_GET['csv']) * { - * $res=db_query("SELECT * FROM fic_courses"); + * $res=DB::query("SELECT * FROM fic_courses"); * csv_send_csv($res); * exit; * } @@ -24,7 +24,7 @@ function csv_export_to_csv($res) { // parse all results, format for CSV - while ( $buf=db_fetch($res,MYSQL_ASSOC) ) + while ( $buf=DB::fetch($res,PDO::FETCH_ASSOC) ) { // get the keys (headers), if not already done if ( empty($heads) ) |