PDO
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
$query = $db->query($strSQL);
|
||||
|
||||
// Fetch the first row
|
||||
$row = $query->fetchArray(SQLITE3_ASSOC);
|
||||
$row = $query->fetch(PDO::FETCH_ASSOC);
|
||||
|
||||
// If no results are found, echo a message and stop
|
||||
if ($row == false){
|
||||
@@ -49,7 +49,7 @@
|
||||
|
||||
echo $line . "\n";
|
||||
// Fetch the next line
|
||||
$row = $query->fetchArray(SQLITE3_ASSOC);
|
||||
$row = $query->fetch(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
// Prints the column names
|
||||
|
||||
Reference in New Issue
Block a user