Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.