Include in conditional does not work - why?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • CAH

    Include in conditional does not work - why?

    Hi

    Why does this not work?

    if (!$artnr) {
    include "./smalltable.php" ;
    }
    else {
    include "./bigtable.php";
    }

    any suggestions - thanks in advance.

    PS. Is this the best php group for this sort of question?

    CAH

  • Andy Hassall

    #2
    Re: Include in conditional does not work - why?

    On 18 Aug 2005 10:09:19 -0700, "CAH" <madsgormlarsen @gmail.com> wrote:
    [color=blue]
    >Why does this not work?
    >
    > if (!$artnr) {
    > include "./smalltable.php" ;
    > }
    > else {
    > include "./bigtable.php";
    > }[/color]

    What makes you think this does not work?

    --
    Andy Hassall / <andy@andyh.co. uk> / <http://www.andyh.co.uk >
    <http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool

    Comment

    Working...