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 446273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:27:16+00:00 2026-05-12T21:27:16+00:00

I was wondering how can I display a members article they created and show

  • 0

I was wondering how can I display a members article they created and show it to visitors all while displaying the members info that is associated with that article to the visitors.

I hope I explained it right?

Here is my mysql articles table.

CREATE TABLE authors_articles (
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
author_id INT UNSIGNED NOT NULL,
title TEXT NOT NULL,
summary TEXT DEFAULT NULL,
content LONGTEXT NOT NULL,
date_created DATETIME NOT NULL,
date_updated DATETIME DEFAULT NULL,
PRIMARY KEY (id)
);

Here is my authors table.

CREATE TABLE author (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(255),
email VARCHAR(255)
) DEFAULT CHARACTER SET utf8;

For example an author creates an article it displays all the info the author entered when finished but how do I make it display for visitors who visit the articles page? Do I do it by the url?

  • 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-12T21:27:16+00:00Added an answer on May 12, 2026 at 9:27 pm

    say you are on a page showing a member’s article(with article id in php variable $article_id) and you want to show that member’s information, you would need to write a simple join query:

    select * from authors_articles,author where
    authors_articles.id = $article_id
    and authors_articles.author_id = author.id
    

    if you are on a member’s profile page(with member’s id in php variable $author_id) and want to show information, link to last few article’s by that member, the query would be:

    select author.id,author_articles.id, title,summary,date_created,name,email from 
    author,authors_articles  where author.id = authors_articles.author_id
    and author.id = $author_id  LIMIT 5
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm wondering how I can display the recently created nodes by a user on
Im wondering how I can display a Euro symbol in UTF-8 Format ? Cheers
I am wondering how I can order posts in my PostController#index to display by
I was wondering how can align my text so it will display the way
I was wondering if UITextView can display rich text? I want to have simple
I'm using the Blackberry JDE (9000 simulator), and am wondering if I can display
I want to redirect from a ViewResult , so that I can display a
I want a list of items that can display either an item's 'greek' or
Hey guys, I have created a navbar and I'm wondering if I can create
I'm pretty new to rails and I was wondering how I can display a

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.