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";