Thread subject: pHpFusion Nederlands (BE|NL) » Ondersteuning, Themas, Infusies, Modificaties en Installatie :: foutmelding

Posted by ivoht on 30 november 2010, 08:50
#1

hi,

ik krijg n error;
Parse error: syntax error, unexpected T_ECHO, expecting ',' or ';' in /mnt/web7/12/63/51959363/htdocs/v2.0/news_cats.php on line 46

als ik deze code gebruik,. Ik krijg de fout er echter niet uit

[geshi=php]http://www.php-fu... +--------------------------------------------------------+ | Filename: news_cats.php | Author: Nick Jones (Digitanium) +--------------------------------------------------------+ | This program is released as free software under the | Affero GPL license. You can redistribute it and/or | modify it under the terms of this license which you | can read by viewing the included agpl.txt or online | at www.gnu.org/licen... Removal of this | copyright header is strictly prohibited without | written permission from the original author(s). +--------------------------------------------------------*/require_once "maincore.php"; require_once THEMES."templates/header.php"; include LOCALE.LOCALESET."news_cats.php"; add_to_title($locale['global_200'].$locale['400']); opentable($locale['400']); if (isset($_GET['cat_id']) && isnum($_GET['cat_id'])) { $res = 0; $result = dbquery("SELECT news_cat_name FROM ".DB_NEWS_CATS." WHERE news_cat_id='".$_GET['cat_id']."'"Wink; if (dbrows($result) || $_GET['cat_id'] == 0) { $data = dbarray($result); $rows = dbcount("(news_id)", DB_NEWS, "news_cat='".$_GET['cat_id']."' AND ".groupaccess('news_visibility'Wink." AND (news_start='0'||news_start<=".time()."Wink AND (news_end='0'||news_end>=".time()."Wink AND news_draft='0'"Wink; if ($rows) { $res = 1; echo "\n"; if ($_GET['cat_id'] != 0) { echo "\n\n"; echo "\n\n\n\n\n\n\n
'".$data['news_cat_name']."'\n"; echo "".$locale['401']." ".$data['news_cat_name']."\n".$locale['402']." $rows\n"; } else { echo "
".$locale['403']."\n"; echo "".$locale['401']." $rows\n"; } $result2 = dbquery("SELECT news_id, news_subject FROM ".DB_NEWS." WHERE news_cat='".$_GET['cat_id']."' AND ".groupaccess('news_visibility'Wink." AND (news_start='0'||news_start<=".time()."Wink AND (news_end='0'||news_end>=".time()."Wink AND news_draft='0' ORDER BY news_datestamp DESC"Wink; while ($data2 = dbarray($result2)) { echo opentable("".$data2['news_subject'].""Wink echo 'snippet'; closetable();; } echo "
".THEME_BULLET." ".$locale['406'].""; echo "
\n"; } } if (!$res) { redirect(FUSION_SELF); } } else { $page = 20;//news per page. $rows = dbcount("(news_id)", DB_NEWS, groupaccess('news_visibility'Wink." AND (news_start='0'||news_start<=".time()."Wink AND (news_end='0'||news_end>=".time()."Wink AND news_draft='0'"Wink; if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) { $_GET['rowstart'] = 0; } if ($rows) { echo "\n"; $result2 = dbquery("SELECT news_id, news_subject, news_cat, news_cat_name FROM ".DB_NEWS." LEFT JOIN ".DB_NEWS_CATS." ON news_cat=news_cat_id WHERE ".groupaccess('news_visibility'Wink." AND (news_start='0'||news_start<=".time()."Wink AND (news_end='0'||news_end>=".time()."Wink AND news_draft='0' ORDER BY news_datestamp DESC LIMIT ".$_GET['rowstart'].",$page"Wink; while ($data2 = dbarray($result2)) { echo "\n\n\n\n"; } echo "
\n"; echo THEME_BULLET." ".$data2['news_subject']."\n"; echo "\n"; echo "in ".$data2['news_cat_name']."\n"; echo "
\n"; } else { echo "There are no news items."; } if ($rows > $page) echo "
\n".makepagenav($_GET['rowstart'],$page,$rows,3)."\n
\n"; } closetable(); require_once THEMES."templates/footer.php"; ?>[/geshi]