Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/01/2012, 13:48
agrevalxxx
 
Fecha de Ingreso: enero-2003
Ubicación: Xalapa, Ver
Mensajes: 6
Antigüedad: 21 años, 3 meses
Puntos: 0
error despues de actualizar PHP 5.3

tengo un codigo que funcionaba bien con PHP 5.2, actualicé a 5.3 y ahora me manda este error Parse error: syntax error, unexpected '}'



mi codigo es este:


<?php session_start();
if (isset($_SESSION['var_usrpe']))
{
include('../funciones/funciones_asc.php');
include('../funciones/funciones_jlfh.php');
include('../funciones/funciones_tgc.php');
include_once('../conexiones/conexion.php');
$registro=null;
if (isset($_POST['reg']))
{
$reg = $_POST['reg'];
$registro = get_datosRegistros($reg);

}else{
$reg='';
}

$fecha = $_POST['f'];
$fechaFin = $_POST['f2'];
if ($fecha=='' && $fechaFin=='')
{
$fechaHoy = date('Y-m-d');
$sol = (strtotime($fechaHoy) - 3600);

$fecha= date('Y-m-d',$sol);
$fechaFin=date('Y-m-d',$sol);
}

$fechaPost=date('Y-m-d',strtotime('+1 day'));//para obtener del dia de mañana
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Captura de Registro</title>
<link href="css/stilos1.css" rel="stylesheet" type="text/css" />

</head>
<br /><br />
<div id="div_resumen" style="display:none"></div>
<div id="capturaPrincipal">
<fieldset style="width:820px; background-color:#F0F0F0">
<form action="scripts/guardaProgramada.php" method="post" name="form1" id="form1" target="SHOW" style="display:<?php echo get_display(1);?>" >
<table cellspacing="0" cellpadding="4" width="100%" align="center" border="0" style="vertical-align:top">
<tr>
<td colspan="4" class="celdaTitulo">Registro de Trabajos Programados</td>
</tr>
<tr><td colspan="4" align="left"><hr /></td></tr>
<tr><td align="left"><b>Copiar Libranza</b></td></tr>
<tr><td colspan="4" align="left"><hr /></td></tr>
<tr>
<td align="left">Fecha Inicio:&nbsp;<input name='v_fecha_ini1' id='v_fecha_ini1' class='inputBoxStyle' value="<?php echo $fecha;?>" ><img src='imagenes/cal.jpg' align='absmiddle' onmouseover="fnInitCalendar(this, 'v_fecha_ini1')"></td>
<td align="left">Fecha&nbsp;Fin:&nbsp;<input name='v_fecha_fin1' id='v_fecha_fin1' class='inputBoxStyle' value="<?php echo $fechaFin;?>" ><img src='imagenes/cal.jpg' align='absmiddle' onmouseover="fnInitCalendar(this, 'v_fecha_fin1')"></td>
</tr>
<tr>
<td colspan="2" align="center"><button id="btnLibranza" name="btnLibranza" style="background:none; border:none" onclick="f_capturaProgramada(document.getElementBy Id('v_fecha_ini1').value,document.getElementById(' v_fecha_fin1').value);" ><img src="imagenes/Buscar.png" /></button></td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="4" align="left">Libranza
<select id="v_reg" style="width:600px" name="v_reg" onchange="CopiarReg(document.getElementById('v_fec ha_ini1').value,document.getElementById('v_fecha_f in1').value);">
<?php f_registros($_SESSION['var_usare'],$reg,$fecha,$fechaFin);?>
</select>
</td>
</tr>
<tr><td colspan="4" align="left"><hr /></td></tr>
<tr><td colspan="4" align="left"><strong>Datos Generales:</strong><hr /></td></tr>
<tr>
<td align="left">Zona:&nbsp;<span class="datosRojo">
<?php if($_SESSION['var_usare']!='00'){ echo comoTitulo(substr($_SESSION['var_arnom'],5),1);}else{ echo comoTitulo($_SESSION['var_arnom'],1);}?>
</span></td>


</tr>
<tr>
<td colspan="2" align="left">Solicitante:&nbsp;<span class="datosRojo"><?php echo comoTitulo($_SESSION['var_ususu'],1);?></span></td>
</tr>
<?php




me podrían decir como corregirlo???


gracias