Ver Mensaje Individual
  #6 (permalink)  
Antiguo 29/03/2010, 10:30
Avatar de TolerantX
TolerantX
 
Fecha de Ingreso: marzo-2006
Ubicación: Guadalajara, México.
Mensajes: 408
Antigüedad: 18 años, 1 mes
Puntos: 10
Respuesta: Ayuda con esta consulta ?

Código PHP:
Ver original
  1. if(!empty($registro)) return TRUE;
Ahí devuelve TRUE
Necesitas que devuelva tu variable $row, entonces
Código PHP:
Ver original
  1. if(!empty($registro)) return $row;
Y acá harias la comparación
Código PHP:
Ver original
  1. if($row = verificaExistencia($valor)) {
__________________
TolerantX
http://tolerantx.com
Linux User #385226