PHP/sqlite3 rowcount question
#4

Quote:
Originally Posted by kingmk
Посмотреть сообщение
did u try this?

PHP код:
while($row $stmt ->fetch_object()) 
{
        
$countrows $row->num_rows
I know u fixed it, but i wanna know if this works/fixes it also.
I don't think so but im not sure. i use $row = $stmt->fetchArray(SQLITE3_ASSOC); to fetch in this case.

Also my way didnt exactly fix it.
When you have 5 rows it shows 4.
So to actually fix it now it must be:
PHP код:
$countrows SqliteNumRows($stmt); 
  
$countrows += 1
Reply


Messages In This Thread
PHP/sqlite3 rowcount question - by jasperschellekens - 24.02.2018, 11:17
Re: PHP/sqlite3 rowcount question - by jasperschellekens - 24.02.2018, 11:34
Re: PHP/sqlite3 rowcount question - by kingmk - 24.02.2018, 11:41
Re: PHP/sqlite3 rowcount question - by jasperschellekens - 24.02.2018, 11:56
Re: PHP/sqlite3 rowcount question - by jasperschellekens - 24.02.2018, 12:56

Forum Jump:


Users browsing this thread: 2 Guest(s)