<?php

    session_start();
    require_once("include/connect.php");
    if(isset($_GET["page"]));{
    $pages = array ("products","cart");
    if(in_array($_GET["page"],$pages));{
    $page = $_GET["page"];
    }else
    {
    $page = "products";
    }
}   
    else
    {
        $page = "products";
    }

?>

could you post the error , instead of us searching for the error

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.