Parse error: syntax error, unexpected end of file in C: \ xampp \ htdocs \ caddy \ grades.php on line 89
This line is the last in my code maybe forget to close something but I already check and I do not see it, the fact is that I want to empty my data that contains my database in the table ticket to be shown in a table in the page, according to the user who logged in I suppose it's fine but I'm still not sure why he sent me that error and another question I want the content of this page to be displayed in my index
when clicking on the ratings option from my menu I hope if someone knows how I can do this tell me and use include();
but only throws the one inside the parentheses if I want to choose another option as I have to show me the option according to choose ie in my menu I have qualifications and reports and I want you to show me either qualifications if I choose in my menu or reports I do not both thank you very much for your help!
<?php session_start();
include "conexion.php";
echo $_SESSION['Usuario'];
?>
<!DOCTYPE html>
<html lang="es">
<meta charset="utf-8"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<head>
<link href="csscali.css" rel="stylesheet" type="text/css" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Calificaciones</title>
<link href="csscali" rel="stylesheet" type="text/css" />
</head>
<body>
<?php
if(isset($_SESSION['Usuario'])){
$re=mysql_query("select * from user_alumno where CURP='".$_POST['id']."'") or die(mysql_error());
while ($f=mysql_fetch_array($re)) {
$arreglo[]=array('CURP'=>$f['id']);
}
if(isset($arreglo)){
$_SESSION['Usuario']=$arreglo;
header("Location: ../admin.php");
}else{
header("Location: ../login.php?error=datos no validos");
} ?>
<center><h1>CALIFICACIONES</h1></center>
<?php mb_internal_encoding("UTF-8");
mysql_query("SET NAMES 'utf8'"); ?>
<div class="wrapper3">
<form id="form1" name="form1" method="post" action="">
<div id="Layer1" style="width:80%; height:200px; overflow:scroll;">
<table width="100%" border="0">
<?php
$f['id']=$var_curp ;
mb_internal_encoding("UTF-8");
mysql_connect ("localhost","root","") or die ("No se pudo conectar al servidor");
mysql_select_db('bdcetis13')or die ('Error al seleccionar la Base de Datos: '.mysql_error());
$result251=mysql_query(" SELECT * FROM boleta WHERE CURP='$var_curp'");
$a251 = mysql_fetch_assoc($result251);
$result261=mysql_num_rows($result251);
do{
$curp=$a251['CURP'];
$mat=$a251['MATERIA'];
$cali=$a251['CALIFICACION1'];
$cali2=$a251['CALIFICACION2'];
$cali3=$a251['CALIFICACION3'];
$calif=$a251['CALIFICACION_FINAL'];
$asis1=$a251['ASISTENCIA1'];
$asis2=$a251['ASISTENCIA2'];
$asis3=$a251['ASISTENCIA3'];
?>
<tr>
<td bgcolor="#CCCCCC"><?php echo $curp;?></td>
<td bgcolor="#CCCCCC"><?php echo $mat;?></td>
<td bgcolor="#CCCCCC"><?php echo $cali;?></td>
<td bgcolor="#CCCCCC"><?php echo $cali2;?></td>
<td bgcolor="#CCCCCC"><?php echo $cali3;?></td>
<td bgcolor="#CCCCCC"><?php echo $calif;?></td>
<td bgcolor="#CCCCCC"><?php echo $asis1;?></td>
<td bgcolor="#CCCCCC"><?php echo $asis2;?></td>
<td bgcolor="#CCCCCC"><?php echo $asis3;?></td>
</tr>
<?php }while($a251 = mysql_fetch_assoc($result251));?>
</table>
</div>
</form>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</div>
</body>
</html>