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

  • Home
  • SEARCH
  • 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 7562067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:19:17+00:00 2026-05-30T13:19:17+00:00

Firstly, what i am trying to do is have a page that users can

  • 0

Firstly, what i am trying to do is have a page that users can see that will have updates via people they are following. I am collecting the people they are following as shown in my code on lines 6-20
http://pastebin.com/556aRdWt
Then i continue to find and display the activity(s) that are found for each user inside an array. Now the trouble i am having is that i am trying to make it display the most recent additions first. But i am having trouble trying to sort the array.I tried to attempt this on my own but i am falling at the last hurdle. If you have any suggestions or comments please don’t be afraid to ask, also if you need anymore information let me know.

Thank you for your time.

  • 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-30T13:19:19+00:00Added an answer on May 30, 2026 at 1:19 pm

    The easiest way is to sort it in your query and MySQL will handle that. This can be done with an ORDER BY clause. Without knowing your database columns, I can’t recommend an exact query. If you have a created_on column, that would be best for your ordering.

    Just as a side note, this is not how you add elements to an array:

    $following[] .= $row['follow_id'];
    

    Try this this instead:

    $following[] = $row['follow_id'];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi i have a couple of question about using named pipes. Firstly, when trying
Firstly anyone else trying to get onto forum.hibernate.org. I have been trying for a
I am trying to create a function that can subtract between 2 dates but
I am trying to develop an application in android in which users will be
Firstly apologies if this is really simple but I have spent hours trying and
I have a serious problem. Firstly, I am trying to retrieve values from my
Firstly I have to say I have no coding experience whatsoever, but will try
Firstly, let me set out what I'd like to do. Assume I have three
Firstly: I am totally a newbie for this kind of work. I have a
Firstly, I was wondering if there was some kind of built in function that

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.