Jump to content

I need some serious help


bennyy

Recommended Posts

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;
}

Link to comment
https://forums.phpfreaks.com/topic/52434-i-need-some-serious-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.