Cita:
y la verdad ya nose que hacer alguien podria ayudarme con esto aqui les presento como hago la consultaWarning: mysql_free_result(): supplied argument is not a valid MySQL result resource in
Código PHP:
$query_Notas = "SELECT * FROM notas WHERE Ano ='".$_SESSION['Ano']."' And Mat ='".$_SESSION['Mat']."' And semestre ='".$_POST['semestre']."'";
Código PHP:
<form action="<?=$_SERVER['PHP_SELF']?>" method="post" name="Semestre" id="Semestre">
<input name="Send" type="submit" id="Send" value="Buscar:.">
<select name="semestre" id="semestre">
<option value='2-2003'>Selecione Semestre</option>
<?php
do {
?>
<option value="<?php echo $row_Semestre['semestre']?>"><?php echo $row_Semestre['semestre']?></option>
<?php
} while ($row_Semestre = mysql_fetch_assoc($Semestre));
$rows = mysql_num_rows($Semestre);
if($rows > 0) {
mysql_data_seek($Semestre, 0);
$row_Semestre = mysql_fetch_assoc($Semestre);
}
?>