sacar datos de mysql joomla con jumi


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.