Posted By

juanprimal on 11/03/11


Tagged


Versions (?)

sacar datos de mysql joomla con jumi


 / Published in: PHP
 

  1. <?php
  2.  
  3. echo"-";
  4.  
  5. defined("_JEXEC") or die("Restricted access");
  6.  
  7. $db = &JFactory::getDBO();
  8. $query='select * from jos_jumi';
  9.  
  10. $db->setQuery($query);
  11.  
  12. $tuplas = $db->loadResultArray();
  13.  
  14. //print_r($tuplas);
  15.  
  16. foreach($tuplas as $tupla) {
  17. echo "-".$tupla[0];
  18. }
  19.  
  20.  
  21. ?>

Report this snippet  

You need to login to post a comment.