Ver Mensaje Individual
  #3 (permalink)  
Antiguo 07/07/2008, 14:25
Avatar de T4ke0veR
T4ke0veR
 
Fecha de Ingreso: agosto-2007
Ubicación: Quito - Ecuador
Mensajes: 1.720
Antigüedad: 17 años, 6 meses
Puntos: 28
Respuesta: GET con dos id

aaaaaaaaaaaah gracias alpaco... ahora ve esto
donde quiero hacerlo hice esto

Código PHP:
<?php include('conect.php');

@
$id_sub=$_REQUEST['id_cat'];

@
$id_prod=$_REQUEST['id_prod'];

$sql="SELECT * from categoria ORDER BY nombre ASC";
$sql_exec=mysql_query($sql) or die( "[ERROR] Query: $sql, error: " mysql_error() );
$total mysql_num_rows($sql_exec);
?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php if ($total 0) { ?>

<table width="600" border="0" cellspacing="0" cellpadding="0">
  <tr><?php while($row=mysql_fetch_assoc($sql_exec)){ ?>
    <td><a href="f_2a.php?id=<?php echo $row['id']; ?>"><?php echo $row['nombre']; ?></a><a href="f_2a.php?id=<?php echo $row['id']; ?>"></a><?php ?> <?php } else {
      echo (
"No hay categorias para mostrar");
?></td>
    <td><?php
if ($id_sub) > 0) { ?>
<?php

$sql2
="SELECT * FROM subcategoria WHERE id_cat = $id_sub ORDER BY nombre ASC";
$qsql_exec2=mysql_query($sql2);
$cou=0;
?><?php ?><?php else { echo ("Debe seleccionar una categoria"); } ?></td>
    <td>&nbsp;</td>
  </tr>
</table>
</body>
</html>
me da este error

Parse error: syntax error, unexpected '>' in C:\wamp\www\Flamuko\ficha_cat.php on line 27
__________________
Diseño gráfico, Web, imagen corporativa, publicidad ...