Jump to content

Recommended Posts

I am working on a project for school, and my part of the project is to create a web page that reads all Artists from a table called 'artists', and then display those artists. then i need to allow the user to click on one to go view a information page about them. The query to show all artists on the table and show it is easy, but i have no idea how i can turn that information into a link to another page. Can anyone suggest somewhere that i can read about how to do this?

Link to comment
https://forums.phpfreaks.com/topic/220074-create-links-from-a-table/
Share on other sites

Will you be Inserting the records also?

If No then:

You need to:

1 Create a recordset that pulls artist info by a unique ID

2. Create a page with identifiable fields, make it a repeating region, add a navigation

(e.g. <<Last Record|<Next Record|Next Record>|Last Record>>)

3. Create a link next to each record that something like: "View Detail" that holds the unique ID (passed via URL) to an artist detail page.

 

If YES (meaning you need to create a content management mechanism) then:

You should have

1 Insert Page

1 View Page (repeat region with links to the Edit/Delete page)

1 Edit Page (aka Update)

1 Delete page

1 End User View page (see above)

The good news is you can recycle the view page and turn it into the End User view page quite easily, and you can use the Insert page as the Edit page by removing the Insert SQL and replacing it with Update SQL.

 

These are the basics hope it helps.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.