sqlite - PHP/Sqlite3: Fatal error: Call to undefined function sqlite_num_rows() -


i getting error when call function sqlite_num_rows. must not dependency issue since other sqlite functions working. i'm able open connection , data db.

relative info on php.net

neither of "sqlite_num_rows($result)" , "$result->numrows()" not working on sqlite3 ! should use way:

<?php  $db = new sqlite3('databasename.db');   $result = $db->query("select * users");   $rows = count ($result);   echo "number of rows: $rows"; 

click me


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -