Tengo otro problemita...
Tengo esta pequeña función
Código PHP:
   public function sqlSelect($rows,$from,$where,$orderBy,$limit = '')
{
if(!empty($orderBy) && empty($where) && empty($limit))    {
    $this->select = mysql_query("SELECT ".$rows." FROM ".$from." ORDER BY ".$orderBy);
}
 
if($this->select)    {
    return $this->select;
}    else    {
    return mysql_error();
}
        
return $this->select; 
    Código PHP:
   $b = $personaje->sqlSelect("*","compraarmas","","armaID DESC","");
if(is_string($b)) die($b); 
    
Código:
  
No especifica nada, y me está volviendo loco... Gracias :) You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
 
 


