
09/02/2002, 11:40
|
| | Fecha de Ingreso: marzo-2001 Ubicación: coyhaique, chile
Mensajes: 53
Antigüedad: 24 años Puntos: 0 | |
Re: como puedo hacer esto aqui les mando el codigo:<html>
<body bgcolor=#c2c2e0 text=#020266 link=#FFFF00 vlink="#FFFF00" alink="#FFFF00">
<?php
include("encabezado.php");
if (!isset($buscar)){
echo "<center><font face='arial'>No se ha encontrado ninguna pelicula</font></center><br>";
echo "<center><font face='arial'>Por favor intente una nueva busqueda</font></center> \n";
echo "</html></body> \n";
exit;
}
$link = mysql_connect("localhost", "root", "");
mysql_select_db("mi_bd", $link);
$sql = "SELECT * FROM video WHERE titulo LIKE '%$buscar%' ORDER BY titulo";
$result = mysql_query($sql, $link);
if ($row = mysql_fetch_array($result)){
echo "<center><table border = '1' cellspacing='0' cellpadding='0' bordercolor='003333'> \n";
mysql_field_seek($result,0);
while ($field = mysql_fetch_field($result)){
echo "<td><b>$field->name</b></td> \n";
}
echo "</tr> \n";
do {
echo "<tr> \n";
echo "<td><font face='Arial'>".$row["id"]."</font></td> \n";
echo "<td><font face='Arial'>".$row["codigo"]."</font></td> \n";
echo "<td><font face='Arial'>".$row["titulo"]."</font></td> \n";
echo "<td><font face='Arial'>".$row["descripcion"]."</font></td> \n";
echo "</tr> \n";
} while ($row = mysql_fetch_array($result));
echo "</table> </center>\n";
echo "<html>";
echo "<head>";
echo "<title>Inter Video</title>";
echo "</head>";
echo "<body bgcolor='#c2c2e0' leftmargin='0' topmargin='10' marginwidth='0' marginheight='0' text='020266' link='#FFFF00' vlink='#FFFF00' alink='#FFFF00'>";
echo "<table width='500' border='0' cellspacing='0' cellpadding='0' align='center'>";
echo "<tr>";
echo "<td>";
echo "<form name='form1' method='post' action=''>";
echo "<table width='500' border='0' cellspacing='2' cellpadding='0' align='right'>";
echo "<tr>";
echo "<td width='211'><font face='Geneva, Arial, Helvetica, san-serif' size='2'>Nombres
:</font></td>";
echo "<td width='2
djchandimix |