Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/02/2010, 13:42
ZEVA
 
Fecha de Ingreso: febrero-2010
Mensajes: 19
Antigüedad: 14 años, 2 meses
Puntos: 0
Respuesta: oferta.php

Los querys que utilicÉ para esa pantalla son:

Cita:
$sql=("select * from alumnos");
$result = mysql_query($sql) or die(mysql_error());

$row = mysql_fetch_array( $result );

$sqlm = "select * from `materias`";
$result = mysql_query($sqlm) or die(mysql_error());

$sqlc = "select * from `materias`, `notas_materia
where `codigo_materia` >0 and `unidades_credito` >=0"

$result = mysql_query($sqlc) or die(mysql_error());
y los imprimÍ en php con:

Cita:
<? While($row=mysql_fetch_array($result)){ ?>
<td> <? Echo $row["codigo_materia"];?> </td>
<td> <? Echo $row["materias"]; ?> </td>
<td> <? Echo $row["unidades_credito"]; ?> </td>
<td> a - b - c - d - e </td>
</tr>
</tbody>
<? }?>
no sÉ si necesito un join u otro select para notas <4, ni tengo idea alguna de como hacerlo...
:(