Ver Mensaje Individual
  #10 (permalink)  
Antiguo 26/02/2013, 13:41
tumbero_x
 
Fecha de Ingreso: octubre-2010
Ubicación: Buenos Aires
Mensajes: 557
Antigüedad: 14 años, 4 meses
Puntos: 4
Respuesta: Pasar parametros por url

OK
en 1.php tengo una condicion dentro de un bucle
Código PHP:
Ver original
  1. while($prodb=mysql_fetch_array($prob))
  2.  {
  3. if($prodb['stock'] < $xcantidad[$x])
  4. {
  5. $st='red ';
  6. $ver=' Ver Disponibilidad';
  7.  
  8. $t=require('venta.php');
  9. $_GET['arti_id']=$bundle["prodbun_artiid"];
  10. $_GET['id']='7';
  11.  
  12. }
  13. else{
  14.             $st='green ';
  15.             $t='';
  16.             $ver='--------------';
  17.     }                           }
y en venta.php
tengo asi
Código PHP:
Ver original
  1. if($_GET['id']=='7'){
  2.  
  3. return  'Proximo a ingresar por Remito 18 Un. Proximo a ingresar por Orden de Compra '.$_GET['arti_id'];
  4. return 'ayer';
  5. return 'mañana';
  6. return 'pasado mañana';
  7. }
y dentro de 1.php tengo una tabla html que a una columna necesito ponerle $t como titulo
Código PHP:
Ver original
  1. <td title="<?=$t?>"></td>
Muchas gracias!!!!