Игорь_Vasinsky
6.05.2013 - 14:53
Цитата |
$query_all_rows = mysql_query("SELECT * FROM $table `ecntry` > 50000"); |
чё пропустил - видишь?
_____________
HTML, CSS (Bootstrap), JS(JQuery, ExtJS), PHP, MySQL, MSSql, Posgres, (TSql, BI OLAP, MDX), Mongo, Git, SVN, CodeIgnater, Symfony, Yii 2, JiRA, Redmine, Bitbucket, Composer, Rabbit MQ, Amazon (SQS, S3, Transcribe), Docker
pro100deadly
6.05.2013 - 18:30
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in P:\home\127.0.0.1\127.0.0.1\base-item.php on line 96
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in P:\home\127.0.0.1\127.0.0.1\base-item.php on line 116
Всё равно :(
$query_all_rows = mysql_query("SELECT * FROM $table `entry` > 50000");
$total_num_pages = ceil(mysql_num_rows($query_all_rows)/$per_page);
if($page >= $total_num_pages) {
$start = 0;
$page = $total_num_pages;
}
else {
$start = $page*$per_page;
}
$query_art = mysql_query("SELECT * FROM $table LIMIT $start+50000,$per_page");
for($i = 0; $i < mysql_num_rows($query_art); ++$i) {
Ошибки выскакивают здесь:
1)
$total_num_pages = ceil(mysql_num_rows($query_all_rows)/$per_page);
2)
for($i = 0; $i < mysql_num_rows($query_art); ++$i)