bennyy Posted May 22, 2007 Share Posted May 22, 2007 I am getting this error Parse error: syntax error, unexpected T_ELSEIF in /home/blueocom/public_html/store/index.php on line 292 this is the coding in that area from the elseif before the errors im getting the errors on the bottom three elseif's in nusphere im getting the error unexpeted elseif elseif ($action == "subcat") if ($start == "") { $start = 1; } $show_subcategories = showsubcategories ($subid); if ($subid == "" || $subid == "2") { $navigation = $subcatinfo[title]; $temp=$DB_site->query("SELECT * FROM ".$dbprefix."subcategory where categoryid='$id'"); $rows=$DB_site->num_rows($temp); if ($rows > 0) { $numon = 1; $navigation = showcategories($subid); $num = secondarylist("featured", "", "count"); if ($num > 0 && $start=="0") { $main_content .= '<br>'.secondarylist("featured"); } $numon = 1; $main_content .= '<br>'.showitems($id, $start, $subid); } else { $numon = 1; $navigation = showsubcategories($subid); $main_content .= showitems($id, $start); } } else { $subs_arr = array(); cookiecrumb($subid); $prevcategory = crumbnav($subs_arr, $id); $navigation .= " ".$prevcategory; $temp=$DB_site->query("SELECT * FROM ".$dbprefix."subcategory where sub_of='$subid'"); $rows=$DB_site->num_rows($temp); if ($rows > 6) { $numon = 1; $navigation = showsubcategories($subid); $num = secondarylist("featured", "", "count"); if ($num > 0 && $start=="0") { $main_content .= '<br>'.secondarylist("featured"); } $numon = 1; $main_content .= '<br>'.showitems($id, $start, $subid); } else { $numon = 1; $navigation = showsubcategories($subid); $main_content .= showitems($id, $start, $subid); } } start(); ; elseif ($action == "vieworder") { $navigation = showsubcategories(); $main_content = vieworder($id); start(); } elseif ($action == "userwishlist") { $navigation = $lang_index[uwish]; $show_categories = showcategories(); $wishlist_items = wishlistitems(2, $id); $userinfo=$DB_site->query_first("SELECT * FROM ".$dbprefix."user where userid='$id'"); eval("\$main_content .= \"".$templates[wishlist_userview]."\";"); start(); } elseif ($action == "updateorder") { $DB_site->query("UPDATE ".$dbprefix."transaction set ucomments='".addslashes($ucomments)."' where orderid='$id' AND userid='$userinfo[userid]' LIMIT 1"); header("location: $settings[siteurl]index.php?action=account"); exit; } Quote Link to comment https://forums.phpfreaks.com/topic/52434-i-need-some-serious-help/ Share on other sites More sharing options...
jitesh Posted May 22, 2007 Share Posted May 22, 2007 elseif ($action == "subcat") insted place elseif ($action == "subcat") { By the way post whole page. Quote Link to comment https://forums.phpfreaks.com/topic/52434-i-need-some-serious-help/#findComment-258744 Share on other sites More sharing options...
bennyy Posted May 22, 2007 Author Share Posted May 22, 2007 If i posted the whole page it would go forever Quote Link to comment https://forums.phpfreaks.com/topic/52434-i-need-some-serious-help/#findComment-258746 Share on other sites More sharing options...
jitesh Posted May 22, 2007 Share Posted May 22, 2007 Have you try ? elseif ($action == "subcat") { // Line one in posted code Quote Link to comment https://forums.phpfreaks.com/topic/52434-i-need-some-serious-help/#findComment-258748 Share on other sites More sharing options...
bennyy Posted May 22, 2007 Author Share Posted May 22, 2007 Thanks that got me back to where i needed to be. i cant believe i missed that Quote Link to comment https://forums.phpfreaks.com/topic/52434-i-need-some-serious-help/#findComment-258749 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.