This tells you a bit about this blog and the person who writes it.
When you are logged in you will be able to edit this page by clicking on the edit icon.
This tells you a bit about this blog and the person who writes it.
When you are logged in you will be able to edit this page by clicking on the edit icon.
getErrorNum()>0) { echo $db->getErrorMsg(); die(); } //$user = JFactory::getUser(); // returns default user until inside application //$db = JFactory::getDBO(); // end of joomla framework stuff $query = $db->getQuery(true); $query->select('*'); $query->from($tname); $db->setQuery($query); $result = $db->loadObjectList(); $properties = get_object_vars($result[0]); //var_dump($properties); echo '
'; foreach ($properties as $key => $value) { //echo $key; echo ''; $columns[] = $key; $v[] = $value; } //var_dump($columns); echo ''; //var_dump($v); $query->select($db->quotename($columns)); $db->setQuery($query); $results = $db->loadObjectList(); echo ''; foreach ($results as $row) { foreach($row as $v) { echo '"; } echo ""; } echo '
'. $key . ' |
---|
'. $v . " |
'; ?>