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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:54:26+00:00 2026-05-28T07:54:26+00:00

So I have a mysql table of many ‘article title’ and ‘article body’s My

  • 0

So I have a mysql table of many ‘article title’ and ‘article body’s

My main page is php which retrieves just all the article titles and displays it.

I want these titles hyperlinked, when you click on it it goes to a new page which displays both title and article body.

not using fcreate or fwrite as this makes a permanent new page.

how would one make a new php page on the fly?

Thanks

  • 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-28T07:54:27+00:00Added an answer on May 28, 2026 at 7:54 am

    Why don’t you just create an article.php file, which is passed an argument that looks up in your database for the corresponding article?

    You would put a link like http://www.example.com/article.php?page=1, where 1 is some sort of index in the table. Then article.php contains some code to take the $_GET['page'] variable and look up the title and body in the database.

    You’ll have to make sure you aren’t vulnerable to SQL Injection attacks, but this seems to be what you’re looking to do.

    Like the commenter mentioned: if you are really against having the query in the url, you could use mod_rewrite (or the equivalent in your web server) to rewrite a URL to an equivalent PHP page.

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

Sidebar

Related Questions

i have a mysql db, and i have one table which has many columns
I have mysql table called it as R which contains many fields, but I
I have a MySQL table that holds many entries with repeated IDs (for various
I have a MySQL table with many numeric columns (some INT, some FLOAT). I
I have a MySQL table containing phone numbers that may be formatted in many
I have a MySQL table for which I do very frequent SELECT x, y,
I have many rows in a mysql table. There is an order_id column. I
I have a mysql MyISAM table with many rows that contain information about places,
I have a MySQL table that contains many rows. The table structure is as
I have a mySQL table which contains rows based on payments. Each row contains

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.