Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6532435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:00:06+00:00 2026-05-25T10:00:06+00:00

With my very basic PHP knowledge I’m trying to make a module for Joomla

  • 0

With my very basic PHP knowledge I’m trying to make a module for Joomla V1.5. I am not quite into all the Joomla classes and methods but perhaps you can help me out.

What I’m trying to do is create a php loop which echo’s all the article id’s (and some html) from a certain category.
Normally I would do this by calling on the content table from the Joomla db but to make the code a bit more tidy I want to use the Joomla classes for this.
Can anyone point me the right direction which classes and methods to use for this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T10:00:07+00:00Added an answer on May 25, 2026 at 10:00 am

    There are no classes for handling the selection of the articles.

    So it comes down to using a query and looping through the result set:

    $catId = 59; // the category ID

    $query = “SELECT * FROM #__content WHERE catid ='” . $catId . “‘”; // prepare query

    $db = &JFactory::getDBO(); // get database object

    $db->setQuery($query); // apply query

    $articles = $db->loadObjectList(); // execute query, return result list

    foreach($articles as $article){ // loop through articles

        echo 'ID:' . $article->id . ' Title: ' . $article->title;
    

    }

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying my first very basic Facebook app using php and have stumbled upon
im very new to this and have a very basic knowledge php and SQL
I'm trying a very basic XPath on this xml (same as below), and it
Thanks to Col. Shrapnel I am using a VERY basic PHP script to send
I'm going through a very basic php tutorial and am creating a calculator so
I am trying to parse some very basic JSON, but I don't know where
I am trying to create a very basic MVC framework to better understand the
For some reason, this very basic page shows up fine in Chrome, but not
I know it is a very basic thing, but I'm not very good at
this is might be a very basic question, but seems like it's not easy

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.