Community Forums 

Main Content

Re:New WEb Site Design

    Apr 01 2012 15:27:41

    #1

    anon

    Join date : 2008-09-18      Posts : 488

    With that much code, it is tough to tell just by looking at it (and we don't know the contents of products_variables.php).

    Some general advice: Add print_r and echo debug statements to your code to check variable values and logic conditions. That should lead you to your problem.

    Hint: If you use print_r to look at array values, make a function like this to make the output more readable:
    function print_debug($var, $name=null) {
    echo("<br />");
    if(!empty($name)) echo("$" . $name . ":\r");
    echo("<pre>\r");
    print_r($var);
    echo("</pre>\r");
    return;
    }