Ver Mensaje Individual
  #15 (permalink)  
Antiguo 17/05/2011, 12:03
martin0290
 
Fecha de Ingreso: octubre-2009
Mensajes: 84
Antigüedad: 14 años, 6 meses
Puntos: 0
Respuesta: [Últimos 10 Resultados] Php y SQL, no salen =(

Probe nuevamente con el codigo inicial


$articulos = $db->get_results($db->query("SELECT title, date FROM ".PREFIX."_post WHERE autor='".$row['name']."' order by date DESC LIMIT 10"));
if($articulos['title']) $tpl->set( '{articulos}', $articulos['title'] );
else $tpl->set( '{articulos}', 'No hay actividad reciente'); // Si no hay articulos

Agregandole como me pablo $db->get_results y tampoco


Fatal error: Call to undefined method db::get_results() in /home/wareszco/public_html/engine/modules/profile.php on line 311