saludos compañero tengo un problema en un script y me esta volviendo loco ya que soy un poco novato con php el error es el siguiente
Parse error: syntax error, unexpected '}' in C:\xampp\htdocs\sce\index.php on line 536
y este es parte del script
</script>
</p><?php echo $mensaje ?>
</td>
</tr>
<tr>
<td height="78" valign="top"><!--DWLayoutEmptyCell--> </td>
</tr>
<tr>
<td height="103"> </td>
<td> </td>
<td> </td>
<td> </td>
<td align="center" valign="middle"><!--DWLayoutEmptyCell--> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="43" colspan="3" valign="top" class="barra-inf"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('ayuda','','images/ayuda_btt_on.gif',1)" onClick="initSlideLeftPanel();return false"><img src="images/ayuda_btt_off.gif" alt="ayuda" name="ayuda" width="80" height="22" border="0"></a></td>
</tr>
</table>
<p align="center"> </p>
</tbody>
</html>
<?php } else { $fecha=fecha() ; $horaentrada = hora(time()) ; //$clavex = md5(trim($clave)) ; $sql = "select * from t_m_usuario where NRO_CLAVE_USUARIO='$contrasena' and TXT_NOMBRE_USUARIO = '$cedula' limit 1" ; $result = $db->sql_query($sql); $row = $db->sql_fetchrow($result); $numrows = $db->sql_numrows($result); if (($numrows==1)&&($row['NRO_CLAVE_USUARIO']==$contrasena)&&($row['BIT_ESTATUS_ELIMINACION']==0)){ //if ($row['claveok']==0){ header("location: cambiarclave.php?usuario=$cedula"); } ; //if ($row['claveok']==1){ modificado alfonso para cuadrar con nuevas tablas //Escribir Log //$log = "login" ; //$sql="insert into sce_logger (usuario,fecha,hora,ip,isp,log) values ('$cedula','$fecha','$horaentrada','$ip','$isp','$log')"; //$db->sql_query($sql); session_start() ; $_SESSION[auth]= true ; $_SESSION["usuario"]= $row['TXT_NOMBRE_USUARIO'] ; //$_SESSION["nivel"]= $row['nivel'] ; header("location: menu.php"); //} } else { header("location: index.php?mensaje=Usuario o Clave incorrecto"); }} ?>
al parecer la ultima llave esta demas si no es eso entons cierralo en tu primer IF que desencadena tu opcion else
<?php } else {
<?php if(condicion){...}?>
<html>
....
</html>
<?php else {.....}?>
suerte ;)