Ver Mensaje Individual
  #2 (permalink)  
Antiguo 13/07/2009, 09:24
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 10 meses
Puntos: 2135
Respuesta: Ayudita Code / matriz

Lo ideal es que en tu tabla tengas una tabla que guarde el id y el nombre por ejemplo:
Código:
combustible_id | combustible
------------------------------------
1                       | Gasolina
2                       | Vip
3                       | Diesel
Luego al hacer tu consulta SQL haces un INNER JOIN a esa tabla y así obtienes el nombre del combustible en lugar del id.

Saludos.