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

  • SEARCH
  • Home
  • 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

EDIT: I have fixed all but two warnings now, so thank you all for
The javascript code I now have can toggle a single row of data. Whether
EDIT: Fixed most of the problem (but not too sure why). Check the bottom
I have my current location fixed via CoreLocation. Now I want to get those
I have background image for a site header with fixed width. Now I am
I have an int and float array of length 220 million (fixed). Now, I
I have an int and float array each of length 220 million (fixed). Now,
I'm reading the documentation now, and I have 1 thing to be fixed -
[SOLVED]: Applying proper list iteration procedure fixed problem. (Shown below) I currently have a
This is not technically a programming question but perhaps someone can help me. Yes,

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.