Re: [OT] Sql complejo
| From: | César Aranda | Date: | Wed, 01 Oct 2003 12:10:20 +0000 |
| Subject: | Re: [OT] Sql complejo | ||
| References: | 1 2 3 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-41121@lists.php.net to get a copy of this message | ||
Hola:
suponiendo que tienes
> pedro - rubio - azul - 1.7
correspondiente a los campos NOMBRE, COLOR1, COLOR2, ALTURA
el script te queda
$result="tu select ", $conexion);
if ($row = mysql_fetch_array($result))
{
$MOROCHO_n=$row['NOMBRE'];
$MOROCHO_c1=$row['COLOR1'];
$MOROCHO_c2=$row['COLOR2'];
$MOROCHO_a=$row['ALTURA'];
echo "$MOROCHO_n, $MOROCHO_c1, $MOROCHO_c2, $MOROCHO_a" ;
}
Aunque el identificador MOROCHO no me parece muy adecuado para el caso.
Suerte!
Cesar