Re: Shopping cart application question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> The " } else { " confuses PHP.  I am not sure what I should be doing.

You're missing at least one brace.

If the code you supplied is a copy of what you have, you're missing a
} for the end of the while loop and one for the end of the else
condition.

So it's treating } else { as part of the while construct (and while()
doesn't have anything like an else condition).

> if ( $_SESSION['user_reference'] > 0 ) {

<snip>

> $i=0;
> while ( $i < $cart_records_found ) {
>

} // end while


> } else {
>
> foreach ($_SESSION['order'] AS $key => $value ) {
>
> }
>

} // end else condition

-- 
Postgresql & php tutorials
http://www.designmagick.com/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux