Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/10/2006, 10:50
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
A simple vista lo que veo es un error en tu funcion, en el switch usas return, esto que hace? que se regrese la funcion con ese valor, por lo que provoca un error.

Puedes usar algo asi:
Código PHP:
public function sqlSelect($rows,$from,$where,$limit '')
    {

        
$this->select mysql_query("SELECT ".$rows." FROM ".$from." WHERE ".$where." LIMIT '".$limit."'");
        
        if(
$this->select)    {
            return 
$this->select;
        }    else    {
            return 
mysql_error();
        }
        
        return 
$this->select;
    }