type pages is it like QBASIC where theres one long script and spilt into different sections that are accessd at one time then how do you name the sections

    make a page.php

    <?php
    if ($id == "1") {
    ....
    }
    ?>

      It comes accross a error when i try to use Includes

        if you are using include lines it is still the same thing as GrimZ said
        example:

        <?

        if($id = 1){
        include "path/to/page1.inc";
        }elseif($id=2){
        include "path/to/page2.inc";
        }
        ?>
        Also It would help to know what error you are getting. If for instance it is telling you there is no such file, then check your spelling and your filepath to make sure They are correct. If you are getting something like "Cannot resend headers" Then there is a conflict with your code and the include both trying to send headers. and so on and so forth. Hope that helped

          Write a Reply...