Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/04/2007, 10:05
killaton
 
Fecha de Ingreso: julio-2003
Mensajes: 71
Antigüedad: 20 años, 9 meses
Puntos: 0
Re: Pasar mas de un dato con AJAX y PHP

hola...

Es muy simple....

<? // siguiendo con tu script php

include("../konekta.php");
if($_GET["id"]!=NULL)
{
$select=mysql_query("select texto1 from productos where id=".$_GET["id"]);
// echo "<h1>".mysql_result($select,0,0)."</h1>";
$result = mysql_query($select);
while ( mysql_fetch_row($result)){
$string_a_publicar .= $row[ campo1 ]."<br>;
$string_a_publicar .= $row[ campo2 ]."<br>;
// lo que quiero indicarte es que armes el html a publicar dentro de la variable $string_a_publicar y listo
}
}
echo $string_a_publicar;