24.02.2018, 11:34
I have fixed it fortunately.
If you may run into this problem. This is a fix:
If you may run into this problem. This is a fix:
PHP код:
<?php
function SqliteNumRows($query){
$numRows = 0;
while($rows = $query->fetchArray()){
++$numRows;
}
return $numRows;
}
?>
$countrows = SqliteNumRows($stmt);
//edit: Otherwise it shows 4 instead of 5 when having 5 rows.
$countrows += 1;