Проблем с мод

themes , модове , проблеми , инсталация
Post Reply
Msecurity
Потребител
Потребител
Posts: 753
Joined: Sat Sep 18, 2010 6:12 am
Answers: 19
Location: Варна

Проблем с мод

Post by Msecurity » Mon Sep 27, 2010 8:50 pm

Значи реших да сложа мод за подкатегории на статиите но ми изписва грешка когата реша да прегледам някоя статия:

Code: Select all

Notice: Undefined index: articles_per_page in E:\WEB\VertrigoServ\www\test\articles.php on line 113
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

Notice: Undefined index: articles_per_page in E:\WEB\VertrigoServ\www\test\articles.php on line 127

Notice: Undefined index: articles_per_page in E:\WEB\VertrigoServ\www\test\articles.php on line 127
Ето ред 112 и 113:

Code: Select all

					"SELECT article_id, article_subject, article_snippet, article_datestamp FROM ".DB_ARTICLES."
					WHERE article_cat='".$_GET['cat_id']."' AND article_draft='0' ORDER BY ".$cdata['article_cat_sorting']." LIMIT ".$_GET['rowstart'].",".$settings['articles_per_page']
А ето го и ред 127:

Code: Select all

				if &#40;$rows > $settings&#91;'articles_per_page'&#93;&#41; echo "<div align='center' style=';margin-top&#58;5px;'>\n".makepagenav&#40;$_GET&#91;'rowstart'&#93;, $settings&#91;'articles_per_page'&#93;, $rows, 3, FUSION_SELF."?cat_id=".$_GET&#91;'cat_id'&#93;."&amp;"&#41;."\n</div>\n";

User avatar
macmen
Потребител
Потребител
Posts: 707
Joined: Thu Sep 18, 2008 10:29 am
Answers: 33

Post by macmen » Mon Sep 27, 2010 10:19 pm

112,113

" SELECT article_id, article_subject, article_snippet, article_datestamp FROM ".DB_ARTICLES." WHERE article_cat='".$_GET['cat_id']."' AND article_draft = '0' ORDER BY ".$cdata['article_cat_sorting']." LIMIT ".$_GET['rowstart'].", ".$settings['articles_per_page']."";

127

if ($rows > $settings['articles_per_page']) {
echo "<div align='center' style=';margin-top:5px;'>\n
".makepagenav($_GET['rowstart'],
$settings['articles_per_page'], $rows, 3, FUSION_SELF."?cat_id=".$_GET['cat_id']."&amp;")."\n
</div>\n";}

Post Reply