Search Result

Collapse
2 results in 0.0039 seconds.
Keywords
Members
Tags
t_if
  •  

  • drgnhiker
    started a topic help with T_IF error
    in PHP

    help with T_IF error

    I have checked this stuff six ways from Sunday and can not find an error....can anyone help? My error message is this:
    Parse error: syntax error, unexpected T_IF in C:\Program Files (x86)\Apache Software Foundation\Apac he2.2\htdocs\mo viesite.php on line 14


    Code:
    <?php
    session_start();
    
    //check to see if user has logged in with a valid password
    if ($_SESSION['authuser'] != 1) {
        echo
    ...
    See more | Go to post
    Last edited by Dormilich; Jan 30 '10, 09:27 AM. Reason: please use [code] tags when posting code

  • James Campbell
    Guest started a topic unexpected T_IF error
    in PHP

    unexpected T_IF error

    ok, I am totally new to php and come from an asp background.

    I basically want to do an If > then > else > end if statement:


    my page is:

    <?php require_once('C onnections/carresa.php'); ?>
    <?php
    $DateTime = date("Y/n/j");
    $IP = $_SERVER["REMOTE_ADD R"];

    mysql_select_db ($database_carr esa, $carresa);
    $query_rs = "SELECT count(Hit_DateT ime)...
    See more | Go to post
Working...