Ver Mensaje Individual
  #13 (permalink)  
Antiguo 15/01/2010, 07:36
etisdemian
 
Fecha de Ingreso: octubre-2009
Mensajes: 357
Antigüedad: 14 años, 6 meses
Puntos: 1
Respuesta: usar campos para categorias

donde esta el "#!!x!" error?

Parse error: syntax error, unexpected $end in C:\xampp\xampp\htdocs\pruabaphp\zenkyu\TMP34jpswaj 4c.php on line 1013

miren

<div id="todito">
<?php
include ("inmenu.php");
?>
<div id="contenedor">
<div id="fila1">
<div id="col1"></div>
<div id="col4">
<ul id="col4">
<?php
$db = mysql_connect("localhost", "root", "xxxx");

if (!$db)
{
echo "Error: No se ha podido conectar a la base de datos. Por favor, prueba de nuevo más tarde.";
exit;
}
$recibir = $_POST['recibir'];

mysql_select_db("based", $db);

$sql = "select * from inventario where in_familia_cod = '$recibir' order by in_titulo asc";

$resultado = mysql_query($sql);
$num_resultados = mysql_num_rows($resultado);

echo "<p>Número de libros encontrados: ".$num_resultados."</p>";

for ($i=0; $i <$num_resultados; $i++)
{
$row = mysql_fetch_array($resultado);

?>
<br />

<?php
echo "<p><strong>".($i+1).". Título: ";
echo "<strong><a href='indetalle.php?in_id=".$row['in_id']."'>".$row['in_titulo']."</a><br>";
echo "</strong><br>Autor: ";
echo stripslashes($row["in_autor"]);
echo "<br>ISBN: ";
echo stripslashes($row["in_ISBN"]);
echo "<br>Precio: ";
echo stripslashes($row["in_venta_iva"]);
echo "<br>Editorial: ";
echo stripslashes($row["in_editor2"]);
echo "<br>Año Edición: ";
echo stripslashes($row["in_edicion"]);
echo "</p>";

if(!$carro || !isset($carro[md5($row['in_id'])]['identificador']) || $carro[md5($row['in_id'])]['identificador']!=md5($row['in_id'])){

?>
<a href="agregacar.php?<?php echo SID ?>&id=<?php echo $row['in_id']; ?>"> <br />
<img src="_imagenes/shop2.jpg" width="64" height="15" border="0" title="Agregar al Carrito">
</a>

<?php
}else{
?>

<a href="borracar.php?<?php echo SID ?>&id=<?php echo $row['in_id']; ?>">
<img src="_imagenes/delete.gif" width="22" height="22" border="0" title="Quitar del Carrito">
</a>

<?php } ?>

<a href="vercarrito.php?<?php echo SID ?>" title="Ver el contenido del carrito">
<img src="_imagenes/2.jpg" width="30" height="20" border="0"></a>

</ul>
</div>
</div>
</div>
</div>