Jump to content

Recommended Posts

I have a table that is something like this:

 

(table name: sites)

 

ID----FileName-----FileAddress----About

1----website1-------google.com----Seach engine

 

How can I make a code in such a way that it can be like:

 

Display all of the FileName in an alphabetical order on file.php that links to their further information page. i.e FileName=website1 links to /file.php?sites=website1

 

 

Now when someone clicks on that /file.php?tablename=FileName

 

It will show for instance

/file.php?sites=website1

 

And then in side it, it will show About section of website1

Link to comment
https://forums.phpfreaks.com/topic/137781-display-mysql-data/
Share on other sites

You will have to look into the $_GET method. you can use it to get links from the url and you can put data in the url like you had done. You will also need to query the database. If you come up with some code somone will be willing to help you but no one will show you how to code this

Link to comment
https://forums.phpfreaks.com/topic/137781-display-mysql-data/#findComment-721691
Share on other sites

Pseudo:

 

SELECT all your data.

Use HTML and embed your SQL results in the links.  Example:


 

On your next page you need to use $_GET for these.

 

And then:

 

And then in side it, it will show About section of website1

 

I don't know what this means...

 

 

Link to comment
https://forums.phpfreaks.com/topic/137781-display-mysql-data/#findComment-721703
Share on other sites

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.