rendered paste body<?php
if (!isset($buscar)){
echo "Debe especificar una cadena a buscar";
echo "<p>Debe especificar una cadena a buscar</p> \n";
echo "<p><a href=formulario.htm>Volver</p> \n";
echo "</html></body> \n";
exit;
}
$link = mysql_connect("localhost", "root");
mysql_select_db("diseno", $link);
$sql = "SELECT * FROM upload WHERE NoCuenta LIKE '%$buscar%' ORDER BY NoCuenta";
$result = mysql_query($sql, $link);
if ($row = mysql_fetch_array($result)){
echo "<center><table border = '1'> \n";
//Mostramos los nombres de las tablas
echo "<td><center><FONT SIZE=1><font face=Arial><b> No. de Cuenta </b></font></font size></center></td>";
echo "<td><center><FONT SIZE=1><font face=Arial><b> Nombre </b></font></font size></center></td>";
echo "<td><center><FONT SIZE=1><font face=Arial><b> Facultad </b></font></font size></center></td>";
echo "<td><center><FONT SIZE=1><font face=Arial><b> Carrera </b></font></font size></center></td>";
echo "<td><center><FONT SIZE=1><font face=Arial><b> Nombre del Proyecto </b></font></center></font size></td>";
echo "<td><center><FONT SIZE=1><font face=Arial><b> Tipo de Titulación </b></font></center></font size></td>";
echo "<td><center><FONT SIZE=1><font face=Arial><b> Asesor 1 </b></font></font size></center></td>";
echo "<td><center><FONT SIZE=1><font face=Arial><b> Asesor 2 </b></font></font size></center></td>";
echo "<td><center><FONT SIZE=1><font face=Arial><b> Asesor 3 </b></font></font size></center></td>";
echo "<td><center><FONT SIZE=1><font face=Arial><b> Descripción del Proyecto </b></font></font size></center></td>";
//}
echo "</tr> \n";
do {
echo "<tr> \n";
echo "<td><FONT SIZE=1><font face=Arial>".$row["NoCuenta"]."</font></font size></td> \n";
echo "<td><FONT SIZE=1><font face=Arial>".$row["Nombre"]."</font></font size></td> \n";
echo "<td><FONT SIZE=1><font face=Arial>".$row["Facultad"]."</font></font size></td> \n";
echo "<td><FONT SIZE=1><font face=Arial>".$row["Carrera"]."</font></font size></td> \n";
echo "<td><FONT SIZE=1><font face=Arial>".$row["NombreProyecto"]."</font></font size></td> \n";
echo "<td><FONT SIZE=1><font face=Arial>".$row["Titulacion"]."</font></font size></td> \n";
echo "<td><FONT SIZE=1><font face=Arial>".$row["Asesor1"]."</font></font size></td> \n";
echo "<td><FONT SIZE=1><font face=Arial>".$row["Asesor2"]."</font></font size></td> \n";
echo "<td><FONT SIZE=1><font face=Arial>".$row["Asesor3"]."</font></font size></td> \n";
echo "<td><FONT SIZE=1><font face=Arial>".$row["Descripcion"]."</font></font size></td> \n";
echo "<td><a></a></td> \n";
} while ($row = mysql_fetch_array($result));
echo "</table></center> \n";
?>