PHP - problems con consulta

 
Vista:

problems con consulta

Publicado por jose (7 intervenciones) el 06/03/2007 21:00:11
if ($nom=="1"and $orde=="1")
{

include("conect.php");
$sql="SELECT cedula,nombre,apellido FROM taller order by $orde ";
$result=mysql_query($sql);

?>

<table width="709" height="140" border="0" align="center">
<tr>
<td><table width="246" height="27" border="1" bgcolor="#CCCCCC">
<tr>
<th width="90"><span class="Estilo4"><? echo "Cedula"?></span></th>
<th width="88"><span class="Estilo4"><? echo "Nombre"?></span></th>
<th width="524"><span class="Estilo4"><? echo "Apellido"?></span></th>

</tr>
</table>
<table width="724" border="0">
<?
while ($usuario=mysql_fetch_row($result))
{
?>
<tr>
<td width="92"><span class="Estilo3"><? echo $usuario[0]?> </span>
<div align="center" class="Estilo3"></div></td>
<td width="85"><span class="Estilo3"><? echo $usuario[1]?> </span>
<div align="center" class="Estilo3"></div></td>
<td width="47"><span class="Estilo3"><? echo $usuario[2]?> </span>
<div align="center" class="Estilo3"></div>
<div align="center" class="Estilo3"></div></td>
<td width="74"><div align="center" class="Estilo3"><? echo $usuario[3]?> </div></td>
<td width="76"><div align="center" class="Estilo3"></div>
<span class="Estilo3"><? echo $usuario[4]?> </span></td>
<td width="78"><div align="center" class="Estilo3"></div>
<span class="Estilo3"><? echo $usuario[5]?> </span></td>
<td width="98"><div align="center" class="Estilo3"></div>
<span class="Estilo3"><? echo $usuario[6]?> </span></td>
<td width="122"><div align="center" class="Estilo3"></div>
<span class="Estilo3"><? echo $usuario[7]?> </span></td>
</tr>
<?
}
?>
</table></td>
</tr>
</table>
<?
}
?>

<?
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder