Ver Mensaje Individual
  #3 (permalink)  
Antiguo 01/11/2004, 08:22
Avatar de 8461277
8461277
 
Fecha de Ingreso: diciembre-2002
Ubicación: san juan de los morros
Mensajes: 887
Antigüedad: 21 años, 4 meses
Puntos: 1
realize lo que me pediste y me sale este error:
Parse error: parse error, unexpected T_VARIABLE, expecting '(' in c:\archivos de programa\easyphp1-7\www\mari-php\busqueda.php on line 16

El codigo completo es:

<?
include("conex_bd.php");
?>
<html>
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<BODY bgcolor="#90B4E0" topmargin="30" leftmargin="0">
<?

$Cedula = addslashes($_POST["cedula"]);
$sel = mysql_query("SELECT Cedula,Nombres,Apellidos,Marca,Modelo,Color,Ano,Pl aca,Precio FROM moto_pedido WHERE Cedula=$Cedula ");
Linea #16- $filas=mysql_affected_rows($sel);//coge el nº de filas afectadas por la operacion
IF $filas>0{
echo "<table align=center border=2>";
echo "<td><CENTER><B>Cedula</B></CENTER></td>";
echo "<td><CENTER><B>Nombres</B></CENTER></td>";
echo "<td><CENTER><B>Apellidos</B></CENTER></td>";
echo "<td><CENTER><B>Marca</B></CENTER></td>";
echo "<td><CENTER><B>Modelo</B></CENTER></td>";
echo "<td><CENTER><B>Color</B></CENTER></td>";
echo "<td><CENTER><B>Ano</B></CENTER></td>";
echo "<td><CENTER><B>Placa</B></CENTER></td>";
echo "<td><CENTER><B>Precio</B></CENTER></td>";
while($registro = mysql_fetch_row($sel)){
# insertamos un salto de línea en la tabla HTML

echo "<tr>";

foreach($registro as $clave){
echo "<td>",$clave,"</td>";
}
}
echo "</table>";
# cerramos la conexion

mysql_close();
}
else{
echo "No hay registro"}
?>

</body>
</html>
Sera que no te entiendo,,, me podrian ayudar
__________________
Miguel Padrón :cool: