Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 618085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:30:23+00:00 2026-05-13T18:30:23+00:00

Now I have fixed the problem the T_ELSE parse error is not displaying anymore,

  • 0

Now I have fixed the problem the T_ELSE parse error is not displaying anymore, But then how can I direct the code to display the if or the else?

Well users are going to come from either page1.php or page2.php

url coming from page1.php
cart.php?ids=1

url coming from page2.php
cart.php?idc=1

for instance if the url is coming from page1.php then cart is going to receive it like

$ids= isset($_GET[‘ids’])?(int) $_GET[‘ids’]:null;

$idc= isset($_GET[‘idc’])?(int) $_GET[‘idc’]:null;

if ($ids) { 
display something
} 
elseif($idc) {
display something different
}
else 
{ 

display nothing has passed 
}

Those are the conditions I have right but it is not working properly since it will display the else message “display nothing has passed”. Again it will display the else statement even if I come from page1.php or page2.php. I guess the conditions are not well set up or it is passing empty. How can I set up the conditions so it can display either $ids statement or the elseif $idc.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T18:30:23+00:00Added an answer on May 13, 2026 at 6:30 pm

    I assume that ‘blabla’ isn’t actually in your code but there is, in fact, something meaningful there.

    Remember to test for something with your if statement.

    if($some_condition) {
      for(blabla) {
        if($another_condition) {
        } // end of if statement inside the for loop
      }   // end of for loop.
    }     // end of if statement 
    else{ // line 379
    
    }// end of else statement
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an unusual problem (this is linked to Browser displays � instead of
I have two tableview controllers showing CoreData objects. One is a detail view (with
I have a client and a server I want to send objects from client
I am using windows 7 64 bit with MSVC2005 and QT (but I doubt
UPDATE : Once I looked at the problem in Firebug, I found my mistake
I am developing a suite of Perl scripts and modules that then get deployed
After installing Ruby and Ruby Gems: $ sudo apt-get install ruby rubygems ... $
I'm having trouble getting the results I want from a Salesforce/Apex/SOQL query. I want:
I've had numerous problems compiling shared objects that link statically against static libraries. This
We are currently testing a bugfix for an old VB6 application, the initial version

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.