Ver Mensaje Individual
  #7 (permalink)  
Antiguo 19/04/2004, 15:21
heyruben
 
Fecha de Ingreso: enero-2004
Mensajes: 339
Antigüedad: 20 años, 3 meses
Puntos: 6
asi?



<html>

<head>
<title>Sacrip</title>
</head>

<body bgcolor="#DCE2E6">

<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="750" height="529" bgcolor="#DCE2E6">
<tr>
<td width="774" colspan="2" height="185"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="775" height="200">
<param name="movie" value="sacrip.swf">
<param name="quality" value="high">
<embed src="sacrip.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="775" height="200"></embed></object></td>
</tr>
<tr>
<td width="775" colspan="2" height="19" bgcolor="#88C6D5"></td>
</tr>
<tr>
<td width="177" height="277">&nbsp;</td>
<td width="573" height="277">

<?php
if (!isset($T1)){
echo "Debe especificar una cadena a bucar";
echo "</html></body> \n";
exit;
}
$link = mysql_connect("localhost", "");
mysql_select_db("sacrip", $link);
$result = mysql_query("SELECT * FROM mensualidad WHERE cedula=$T1 ORDER BY cedula", $link) or die(mysql_error());
if ($row = mysql_fetch_array($result)){

echo "<table border = '1'> \n";
//Mostramos los nombres de las tablas
echo "<tr> \n";
while ($field = mysql_fetch_field($result)){
echo "<td>$field->name</td> \n";

}
echo "</tr> \n";
do {
echo "<tr> \n";
echo "<td>".$row["cedula"]."</td> \n";
echo "<td>".$row["nombre"]."</td> \n";
echo "<td>".$row["fecha"]."</td> \n";
echo "<td>".$row["monto"]."</a></td> \n";
echo "</tr> \n";
} while ($row = mysql_fetch_array($result));
echo "</table> \n";
} else {
echo "¡ No se ha encontrado ningún registro !";
$link = mysql_connect("localhost", ""); // <--- www.php.net/mysql_connect .. revisa cuantos parámetros tiene esa función
mysql_select_db("sacrip", $link) or die(mysql_error());
}
?>
</td>
</tr>
<tr>
<td width="775" colspan="2" height="47">&nbsp;</td>
</tr>
</table>
</center>
</div>

</body>
</html>
__________________
Pazzz mundiaaaalllll