It is necessary to count the number of posts. Used
mysql_result(mysql_query("SELECT COUNT(*) ...
How to do this in PDO in the best way?
$STH = $DBH->query('SELECT * from tables'); if ($row = $STH->fetch()) { $STH->rowCount(); }
Works depending on the version of MySQL
Source: https://ru.stackoverflow.com/questions/98042/More articles:How to stretch the background image over the entire size of the widget in QT?Deleting a record from a table without using GETHow to connect to MS SQL using ASP?How to serialize an instance of a class to an XML string?Sort VectorHigh-load web projects [closed]Installing the ObjectivEclipse pluginFTP connection hangsVisual fix for DataGridViewLinux semaphoresAll Articles