Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/10/2011, 14:06
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: Tomar el valor de un solo row con MySQL-PHP

A menos que crees tu una función que lo haga, no veo una más directa, por ejemplo:
Código PHP:
Ver original
  1. function mysql_fetch_unique($sQuery) {
  2.       $Result = mysql_query($sQuery);
  3.       $aData = mysql_fetch_num($Result);
  4.  
  5.       return $aData[0];
  6. }
  7.  
  8. $email = mysql_fetch_unique("SELECT email FROM users WHERE id = '$id' LIMIT 1");

Saludos.