Jump to content

Recommended Posts

This is the parse error I get:

 

Parse error: syntax error, unexpected $end in C:\Inetpub\wwwroot\specialty_old\member.php on line 528

 

The wierd thing is the file is only 526 lines long.

 

This isn't my code, I am trying to clean it up.

 

Any ideas where to start even looking for it.

 

Thanks,

 

Kevin

 

 

Link to comment
https://forums.phpfreaks.com/topic/73846-unexpected-end-on-line-528/
Share on other sites

Fair enough!!!!  Thanks for taking the time.

 

<?php

require("global.php");
$header=$footer="";
$login_required = true;

SessionStart();
if (GetSessionVar("ga")=="specialty")
{
$header="a_specialty_head.php";
$footer="a_specialty_foot.php";
$lossRunEmail="sra@specialty-risk.com";
}
else if (GetSessionVar("ga")=="dupuy")
{
$header="a_dupuy_head.php";
$footer="a_dupuy_foot.php";
$lossRunEmail="srad@specialty-risk.com";
}
else if (GetSessionVar("ga")=="sunbelt")
{
$header="a_sunbelt_head.php";
$footer="a_sunbelt_foot.php";
$lossRunEmail="srab@specialty-risk.com";
}
else if (GetSessionVar("ga")=="metro")
{
$header="a_metro_head.php";
$footer="a_metro_foot.php";
$lossRunEmail="sram@specialty-risk.com";
}

$event_map = array
              (
              "forms"=>"show_forms",
              "change_pass_form" => "change_pass_form",
              "change_pass" => "change_pass",
		  "edit_agent_pass_form" => "edit_agent_pass_form",
              "products"=>"show_products",
              "personnel"=>"show_personnel",
              "raters"=>"show_raters",
              "persprod"=>"show_persprod",
						"contact"=>"show_contact",
						"contact_submit"=>"contact_submit",
              "comsprod"=>"show_comsprod",
              "edit_account" => "edit_account",
              "update" => "update_account",
              "editagent" => "edit_agent",
              "deleteagent" => "delete_agent",
              "updateagent" => "update_agent",
              "newagent" => "new_agent" ,
              "newagent_submit" => "newagent_submit",
              "edit_agency_account" => "edit_agency" ,
              "update_agency"=>"update_agency",
              "confirm_email"=>"confirm_email"  ,
              "confirm_email_submit" => "confirm_email_submit" ,
              "lossruns" => "loss_runs" ,
              "loss_runs_email" => "loss_runs_email",
              "premium" => "show_premium"
              );

function contact_submit()
{
global $name,$email,$message,$id;
global $header,$footer;
$db = new Sql;

$agency=GetSessionVar("ga");
$send_to = "";
if ($id == "")
{
	switch($agency)
	{
		case "specialty": 
			$send_to="sra@specialty-risk.com";
			break;
		case "sunbelt":
			$send_to = "srab@specialty-risk.com";
			break;
		case "metro":
			$send_to = "sram@specialty-risk.com";
			break;
		case "dupuy":
			$send_to = "srad@specialty-risk.com";
			break;
	}
}
else
{
	$q="select * from personnel where personnelid='$id'";
	$db->exec($q);
	$r=$db->Next();
	$send_to = $r["email"];
}

//$send_to="rikul@interbee.com";
$m = new Mail();
$m->From("noreply@specialty-risk.com");
$m->To($send_to);
$m->Subject("Contact us email from specialty-risk.com");

$msg = "Name: $name <br>";
$msg .= "Email: $email <br>";
$msg .= "Message: $message <br>";

$m->Body($msg,"text/html");
$m->Send();


include("$header");
?>
<p> </p>
Thank you for contacting us.
<table height=350><tr><td>  </td></tr></table>
<?
include("$footer");
}

function show_contact()
{
global $header, $footer;

include("$header");
include("contactus.disp.php");
include("$footer");
}

function loss_runs_email()
{
global $header, $footer, $lossRunEmail;
global $name, $requestedBy, $agency, $phone_num, $fax_num, $email, $comments;
global $carrier1, $policy1, $period1, $carrier2, $policy2, $period2, $carrier3, $policy3, $period3;

	$message = "Request for Loss Runs\n";
	$message = $message . "Name of Insured:" . $name . "\n";
	$message = $message . "Requested By:" . $requestedBy . "\n";
	$message = $message . "Agency:" . $agency . "\n";
	$message = $message . "Phone #: " . $phone_num . "\n";
	$message = $message . "Fax #:" . $fax_num . "\n";
	$message = $message . "E-mail Address:" . $email . "\n";
	$message = $message . "Carrier  / Policy Number / Policy Period \n";
	$message = $message . $carrier1 . " / " . $policy1 . " / " . $period1 . "\n";
	$message = $message . $carrier2 . " / " . $policy2 . " / " . $period2 . "\n";
	$message = $message . $carrier3 . " / " . $policy3 . " / " . $period3 . "\n";
	$message = $message . " Comments/Suggestions:" . $comments;


mail($lossRunEmail,'Loss Run Request',$message, "From: $email");
//echo($message);
include("$header");
include("loss_runs_email.disp.php");
include("$footer");
}

function loss_runs()
{
global $header, $footer;

include("$header");
include("loss_runs.disp.php");
include("$footer");
}

function confirm_email()
{
    $db=new Sql2();
    global $header,$footer;

    //include($header);
    ?>
    <html><head><title>Confirm Email</title>
    <link href="style.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <PHP?
    include("confirm_email.disp.php");
    //include($footer);
    ?>
    </body></html>
    <PHP?
}

function confirm_email_submit()
{
    global $email;
    $db = new Sql2();
    
    if (trim($email)=="")
    {
        die("Email cannot be empty");
    }
    
    $q="select contact_email from agency where code_num='" . GetSessionVar("code")
                . "'";
    $db->exec($q);
    $r=$db->Next();
    
    if ($r["contact_email"] != $email)
    {
        /* change email */
        $q="update agency
                set contact_email = '$email'
            where code_num = '" . GetSessionVar("code") . "'";
        $db->exec($q);
    }

    $q="update agency
            set email_confirmed='y'
        where code_num = '" . GetSessionVar("code") . "'";
    $db->exec($q);
    SetSessionVar("email_confirmed","y");
    RefreshToUrl("member.php");
}

function edit_agent_pass_form()
{
global $header, $footer;
require_agency_login();
include("$header");
include("change_pass.disp.php");
include("$footer");

}
function change_pass_form()
{
    global $header,$footer;
require_agency_login();
    //include($header);
    ?>
    <html><head><title>Change Password</title>
    <link href="style.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <PHP?
    include("change_pass.disp.php");
    //include($footer);
    ?>
    </body></html>
    <PHP?
}


function change_pass()
{
require_agency_login();
    global $password;
    $db = new Sql2();
    if ($password=="password")
    {
        ?>
        <html><head><title>Password</title>
        <link href="style.css" rel="stylesheet" type="text/css">
        </head><body>
        <center><p> 
            Bad Password<br>
            Password must be atleast 4 characters &<br>
            Password cannot be "password"<br>
        <a href="javascript:history.go(-1)">Go back</a>
        </body>
        </html>

        <PHP?
        exit;
    }

    $q="update agency set password='$password'
                where code_num='" . GetSessionVar("code") . "'";
    $db->exec($q);
    
    SetSessionVar("change_pass","0");
    SessionEnd();
    
    RefreshToUrl("member.php");
    
}

function edit_agent()
{
  global $id;
require_agency_login();
  $db=new Sql2();
  $q="select * from agent,luser where agent.luser='$id'
          and agent.luser=luser.screen_name";
  $db->exec($q);
  
  $r=$db->Next();
  display_header();
  require("include/edit_agent.disp.php");
  display_footer();
}

function edit_agency()
{
  require_agency_login();
  $db=new Sql2();
  $id=GetSessionVar("agency_id");

  $q="select * from agency where id='$id'";
  $db->exec($q);
  $r=$db->Next();
  

  display_header();
  require("include/edit_agency.disp.php");
  display_footer();
}

function delete_agent()
{
  global $id;
require_agency_login();
  $db=new Sql2();
  
  $q="delete from agent where luser='$id'";
  $db->exec($q);
  
  $q="delete from luser where screen_name='$id'";
  $db->exec($q);
  
  RefreshToUrl("member.php");
}

function update_agent()
{
require_agency_login();
$db = new Sql2();
global $first_name,$last_name,$contact_type_text,$phone,$fax,$email,
		$username,$password;

$q="update luser
			set 
				first_name='$first_name',	
				last_name='$last_name',
				phone='$phone',
				fax='$fax',
				email='$email',
				password='$password'
	where screen_name='$username' ";
$db->exec($q);
//print $q;
$q="update agent 	
		set contact_type_text='$contact_type_text',fax='$fax'
	where luser='$username' ";
$db->exec($q);
//print $q;

RefreshToUrl("member.php");
}

function new_agent()
{
require_agency_login();
  display_header();
  require("include/new_agent.disp.php");
  display_footer();
}

function newagent_submit()
{
require_agency_login();
  global $first_name,$last_name,$phone,$fax,$email,$username,$password,
          $contact_type_text;
  
$agency_id = GetSessionVar("agency_id");

  /* check if username exists */
  $q="select * from luser where screen_name='$username'";
$db=new Sql2();
  $db->exec($q);
  if ($db->NumRows())
    display_error_page("Username exists.");
    
  $q="insert into luser (screen_name,first_name,last_name,phone,fax,email,
  					password) values ('$username','$first_name','$last_name',
				'$phone','$fax','$email','$password') ";
$db->exec($q);

$q="insert into agent (luser,company_id,contact_type_text,fax)
			values ('$username','$agency_id','$contact_type_text','$fax')";
$db->exec($q);

  RefreshToUrl("member.php");
}


function member_page()
{
global $header, $footer;

    if (GetSessionVar("email_confirmed")!="y")
    {
        RefreshToUrl("member.php?event=confirm_email");
        exit;
    }
include("$header");
include("member.disp.php");
include("$footer");
}

function show_forms()
{
display_header();
require("include/forms2.disp.php");
display_footer();
}

function show_premium()
{
display_header();
require("include/premium.disp.php");
display_footer();
}

function show_products()
{
display_header();
require("include/products2.disp.php");
display_footer();
}

function show_personnel()
{
display_header();
//	require("include/apersonnel.disp.php"); // this line was removed
require("include/apersonnel_member.disp.php");
display_footer();
}

function show_persprod()
{
display_header();
require("include/persprod.disp.php");
display_footer();
}

function show_comsprod()
{
display_header();
require("include/comsprod.disp.php");
display_footer();
}

function show_raters()
{
display_header();
//	require("include/raters.disp.php");
require("include/raters_member.disp.php");
display_footer();
}

function edit_account()
{
$db = new Sql2();
$user = GetSessionVar("username");

$q="select * from agent,luser 
		where agent.luser = luser.screen_name
		and agent.luser = '$user' ";
$db->exec($q);
$r=$db->Next();

display_header();
require("include/edit_account.disp.php");
display_footer();
}

function update_account()
{
$db = new Sql2();
global $first_name,$last_name,$contact_type_text,$phone,$fax,$email,$user;

$q="update luser
			set 
				first_name='$first_name',	
				last_name='$last_name',
				phone='$phone',
				fax='$fax',
				email='$email'
	where screen_name='$user' ";
$db->exec($q);

$q="update agent 	
		set contact_type_text='$contact_type_text',fax='$fax'
	where luser='$user' ";
$db->exec($q);

RefreshToUrl("member.php");
}

function update_agency()
{
  require_agency_login();
  global $name,$contact_name,$contact_email,$addr1,$city,$parish_county,
        $state,$zipcode,$website_addr,$phone_num,$fax_num;
  $db=new Sql2;
  $agency_id=GetSessionVar("agency_id");
  
  $q="update agency
        set name='$name',
            contact_name='$contact_name',
            contact_email='$contact_email',
            addr1='$addr1',
            city='$city',
            state='$state',
            parish_county='$parish_county',
            zipcode='$zipcode',
            website_addr='$website_addr',
            phone_num='$phone_num',
            fax_num='$fax_num'
      where id='$agency_id'";
      
  $db->exec($q);
  //print $q;

  RefreshToUrl("member.php");
}


function main()
{
global $header, $footer;
member_page();
SessionEnd();
}

handle_events();

don't think so. it still breaks when it's there.

 

what's going on in confirm_email()?

 

function confirm_email()
{
    $db=new Sql2();
    global $header,$footer;

    //include($header);
    ?>
    <html><head><title>Confirm Email</title>
    <link href="style.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <PHP?
    include("confirm_email.disp.php");
    //include($footer);
    ?>
    </body></html>
    <PHP?
}

 

Have you previously had success opening up PHP just before ending a function? My editor sure doesn't like it.

in fact, this function won't compile in a file by itself:

 

<?php
function confirm_email()
{
    $db=new Sql2();
    global $header,$footer;

    //include($header);
?>
    <html><head><title>Confirm Email</title>
    <link href="style.css" rel="stylesheet" type="text/css">
    </head>
    <body>
<PHP?
    include("confirm_email.disp.php");
    //include($footer);
?>
    </body></html>
    <PHP?
}
?>

 

i think you might need to reconsider how you're opening and closing PHP

cant believe people are as blind as this

 

<?php

require("global.php");
$header=$footer="";
$login_required = true;

SessionStart();
if (GetSessionVar("ga")=="specialty")
{
$header="a_specialty_head.php";
$footer="a_specialty_foot.php";
$lossRunEmail="sra@specialty-risk.com";
}
else if (GetSessionVar("ga")=="dupuy")
{
$header="a_dupuy_head.php";
$footer="a_dupuy_foot.php";
$lossRunEmail="srad@specialty-risk.com";
}
else if (GetSessionVar("ga")=="sunbelt")
{
$header="a_sunbelt_head.php";
$footer="a_sunbelt_foot.php";
$lossRunEmail="srab@specialty-risk.com";
}
else if (GetSessionVar("ga")=="metro")
{
$header="a_metro_head.php";
$footer="a_metro_foot.php";
$lossRunEmail="sram@specialty-risk.com";
}

$event_map = array
              (
              "forms"=>"show_forms",
              "change_pass_form" => "change_pass_form",
              "change_pass" => "change_pass",
		  "edit_agent_pass_form" => "edit_agent_pass_form",
              "products"=>"show_products",
              "personnel"=>"show_personnel",
              "raters"=>"show_raters",
              "persprod"=>"show_persprod",
						"contact"=>"show_contact",
						"contact_submit"=>"contact_submit",
              "comsprod"=>"show_comsprod",
              "edit_account" => "edit_account",
              "update" => "update_account",
              "editagent" => "edit_agent",
              "deleteagent" => "delete_agent",
              "updateagent" => "update_agent",
              "newagent" => "new_agent" ,
              "newagent_submit" => "newagent_submit",
              "edit_agency_account" => "edit_agency" ,
              "update_agency"=>"update_agency",
              "confirm_email"=>"confirm_email"  ,
              "confirm_email_submit" => "confirm_email_submit" ,
              "lossruns" => "loss_runs" ,
              "loss_runs_email" => "loss_runs_email",
              "premium" => "show_premium"
              );

function contact_submit()
{
global $name,$email,$message,$id;
global $header,$footer;
$db = new Sql;

$agency=GetSessionVar("ga");
$send_to = "";
if ($id == "")
{
	switch($agency)
	{
		case "specialty": 
			$send_to="sra@specialty-risk.com";
			break;
		case "sunbelt":
			$send_to = "srab@specialty-risk.com";
			break;
		case "metro":
			$send_to = "sram@specialty-risk.com";
			break;
		case "dupuy":
			$send_to = "srad@specialty-risk.com";
			break;
	}
}
else
{
	$q="select * from personnel where personnelid='$id'";
	$db->exec($q);
	$r=$db->Next();
	$send_to = $r["email"];
}

//$send_to="rikul@interbee.com";
$m = new Mail();
$m->From("noreply@specialty-risk.com");
$m->To($send_to);
$m->Subject("Contact us email from specialty-risk.com");

$msg = "Name: $name <br>";
$msg .= "Email: $email <br>";
$msg .= "Message: $message <br>";

$m->Body($msg,"text/html");
$m->Send();


include("$header");
echo('<p> </p>
Thank you for contacting us.
<table height=350><tr><td>  </td></tr></table>');
include("$footer");
}

function show_contact()
{
global $header, $footer;

include("$header");
include("contactus.disp.php");
include("$footer");
}

function loss_runs_email()
{
global $header, $footer, $lossRunEmail;
global $name, $requestedBy, $agency, $phone_num, $fax_num, $email, $comments;
global $carrier1, $policy1, $period1, $carrier2, $policy2, $period2, $carrier3, $policy3, $period3;

	$message = "Request for Loss Runs\n";
	$message = $message . "Name of Insured:" . $name . "\n";
	$message = $message . "Requested By:" . $requestedBy . "\n";
	$message = $message . "Agency:" . $agency . "\n";
	$message = $message . "Phone #: " . $phone_num . "\n";
	$message = $message . "Fax #:" . $fax_num . "\n";
	$message = $message . "E-mail Address:" . $email . "\n";
	$message = $message . "Carrier  / Policy Number / Policy Period \n";
	$message = $message . $carrier1 . " / " . $policy1 . " / " . $period1 . "\n";
	$message = $message . $carrier2 . " / " . $policy2 . " / " . $period2 . "\n";
	$message = $message . $carrier3 . " / " . $policy3 . " / " . $period3 . "\n";
	$message = $message . " Comments/Suggestions:" . $comments;


mail($lossRunEmail,'Loss Run Request',$message, "From: $email");
//echo($message);
include("$header");
include("loss_runs_email.disp.php");
include("$footer");
}

function loss_runs()
{
global $header, $footer;

include("$header");
include("loss_runs.disp.php");
include("$footer");
}

function confirm_email()
{
    $db=new Sql2();
    global $header,$footer;

    //include($header);
    echo('<html><head><title>Confirm Email</title>
    <link href="style.css" rel="stylesheet" type="text/css">
    </head>
    <body>')
    include("confirm_email.disp.php");
    //include($footer);
    echo('</body></html>');
}

function confirm_email_submit()
{
    global $email;
    $db = new Sql2();
    
    if (trim($email)=="")
    {
        die("Email cannot be empty");
    }
    
    $q="select contact_email from agency where code_num='" . GetSessionVar("code")
                . "'";
    $db->exec($q);
    $r=$db->Next();
    
    if ($r["contact_email"] != $email)
    {
        /* change email */
        $q="update agency
                set contact_email = '$email'
            where code_num = '" . GetSessionVar("code") . "'";
        $db->exec($q);
    }

    $q="update agency
            set email_confirmed='y'
        where code_num = '" . GetSessionVar("code") . "'";
    $db->exec($q);
    SetSessionVar("email_confirmed","y");
    RefreshToUrl("member.php");
}

function edit_agent_pass_form()
{
global $header, $footer;
require_agency_login();
include("$header");
include("change_pass.disp.php");
include("$footer");

}
function change_pass_form()
{
    global $header,$footer;
require_agency_login();
    //include($header);
    echo('<html><head><title>Change Password</title>
    <link href="style.css" rel="stylesheet" type="text/css">
    </head>
    <body>');
    include("change_pass.disp.php");
    //include($footer);
    echo('</body></html>');
}


function change_pass()
{
require_agency_login();
    global $password;
    $db = new Sql2();
    if ($password=="password")
    {
        echo('<html><head><title>Password</title>
        <link href="style.css" rel="stylesheet" type="text/css">
        </head><body>
        <center><p> 
            Bad Password<br>
            Password must be atleast 4 characters &<br>
            Password cannot be "password"<br>
        <a href="javascript:history.go(-1)">Go back</a>
        </body>
        </html>');
        exit;
    }

    $q="update agency set password='$password'
                where code_num='" . GetSessionVar("code") . "'";
    $db->exec($q);
    
    SetSessionVar("change_pass","0");
    SessionEnd();
    
    RefreshToUrl("member.php");
    
}

function edit_agent()
{
  global $id;
require_agency_login();
  $db=new Sql2();
  $q="select * from agent,luser where agent.luser='$id'
          and agent.luser=luser.screen_name";
  $db->exec($q);
  
  $r=$db->Next();
  display_header();
  require("include/edit_agent.disp.php");
  display_footer();
}

function edit_agency()
{
  require_agency_login();
  $db=new Sql2();
  $id=GetSessionVar("agency_id");

  $q="select * from agency where id='$id'";
  $db->exec($q);
  $r=$db->Next();
  

  display_header();
  require("include/edit_agency.disp.php");
  display_footer();
}

function delete_agent()
{
  global $id;
require_agency_login();
  $db=new Sql2();
  
  $q="delete from agent where luser='$id'";
  $db->exec($q);
  
  $q="delete from luser where screen_name='$id'";
  $db->exec($q);
  
  RefreshToUrl("member.php");
}

function update_agent()
{
require_agency_login();
$db = new Sql2();
global $first_name,$last_name,$contact_type_text,$phone,$fax,$email,
		$username,$password;

$q="update luser
			set 
				first_name='$first_name',	
				last_name='$last_name',
				phone='$phone',
				fax='$fax',
				email='$email',
				password='$password'
	where screen_name='$username' ";
$db->exec($q);
//print $q;
$q="update agent 	
		set contact_type_text='$contact_type_text',fax='$fax'
	where luser='$username' ";
$db->exec($q);
//print $q;

RefreshToUrl("member.php");
}

function new_agent()
{
require_agency_login();
  display_header();
  require("include/new_agent.disp.php");
  display_footer();
}

function newagent_submit()
{
require_agency_login();
  global $first_name,$last_name,$phone,$fax,$email,$username,$password,
          $contact_type_text;
  
$agency_id = GetSessionVar("agency_id");

  /* check if username exists */
  $q="select * from luser where screen_name='$username'";
$db=new Sql2();
  $db->exec($q);
  if ($db->NumRows())
    display_error_page("Username exists.");
    
  $q="insert into luser (screen_name,first_name,last_name,phone,fax,email,
  					password) values ('$username','$first_name','$last_name',
				'$phone','$fax','$email','$password') ";
$db->exec($q);

$q="insert into agent (luser,company_id,contact_type_text,fax)
			values ('$username','$agency_id','$contact_type_text','$fax')";
$db->exec($q);

  RefreshToUrl("member.php");
}


function member_page()
{
global $header, $footer;

    if (GetSessionVar("email_confirmed")!="y")
    {
        RefreshToUrl("member.php?event=confirm_email");
        exit;
    }
include("$header");
include("member.disp.php");
include("$footer");
}

function show_forms()
{
display_header();
require("include/forms2.disp.php");
display_footer();
}

function show_premium()
{
display_header();
require("include/premium.disp.php");
display_footer();
}

function show_products()
{
display_header();
require("include/products2.disp.php");
display_footer();
}

function show_personnel()
{
display_header();
//	require("include/apersonnel.disp.php"); // this line was removed
require("include/apersonnel_member.disp.php");
display_footer();
}

function show_persprod()
{
display_header();
require("include/persprod.disp.php");
display_footer();
}

function show_comsprod()
{
display_header();
require("include/comsprod.disp.php");
display_footer();
}

function show_raters()
{
display_header();
//	require("include/raters.disp.php");
require("include/raters_member.disp.php");
display_footer();
}

function edit_account()
{
$db = new Sql2();
$user = GetSessionVar("username");

$q="select * from agent,luser 
		where agent.luser = luser.screen_name
		and agent.luser = '$user' ";
$db->exec($q);
$r=$db->Next();

display_header();
require("include/edit_account.disp.php");
display_footer();
}

function update_account()
{
$db = new Sql2();
global $first_name,$last_name,$contact_type_text,$phone,$fax,$email,$user;

$q="update luser
			set 
				first_name='$first_name',	
				last_name='$last_name',
				phone='$phone',
				fax='$fax',
				email='$email'
	where screen_name='$user' ";
$db->exec($q);

$q="update agent 	
		set contact_type_text='$contact_type_text',fax='$fax'
	where luser='$user' ";
$db->exec($q);

RefreshToUrl("member.php");
}

function update_agency()
{
  require_agency_login();
  global $name,$contact_name,$contact_email,$addr1,$city,$parish_county,
        $state,$zipcode,$website_addr,$phone_num,$fax_num;
  $db=new Sql2;
  $agency_id=GetSessionVar("agency_id");
  
  $q="update agency
        set name='$name',
            contact_name='$contact_name',
            contact_email='$contact_email',
            addr1='$addr1',
            city='$city',
            state='$state',
            parish_county='$parish_county',
            zipcode='$zipcode',
            website_addr='$website_addr',
            phone_num='$phone_num',
            fax_num='$fax_num'
      where id='$agency_id'";
      
  $db->exec($q);
  //print $q;

  RefreshToUrl("member.php");
}


function main()
{
global $header, $footer;
member_page();
SessionEnd();
}

handle_events();
?>

 

You had: <PHP? instead of <?PHP

 

and use:

echo('SOMETHING, YOU CAN USE HTML IN HERE');

 

instead of opening and closing the php tags

Thought id come and help ;)

Ok.  Let me look into it.  All this code was written at least 2-3 years ago by someone else.  I have only been here 6 months.  "Supposedly" this code worked completely at one time.  However, I know that some of it hasn't worked since I have been here, then the website nose-dived when I upgraded PHP.

 

I am speculating that it did work a long time ago, then a PHP update broke some of it, then the last update I did finally killed it.

 

Let me look into changing the order of things.  Thanks for your help.

 

Changed the <?php tags.

 

Thanks.

 

 

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.