Jump to content

links to database


rachae1

Recommended Posts

Hi,

 

I have links.php that has 3 categories:

 

<a href="links.php">Show Last 10 Added</a>

<a href="links.php?type=category1">Category1</a>

<a href="links.php?type=category2">Category2</a>

<a href="links.php?type=category3">Category3</a>

 

These all link perfectly, I was wondering if it was possible to create a link to display all the data in my table like this.

 

<a href="links.php?id=">Show All</a>

 

 

Thanks

 

Rachael

Link to comment
https://forums.phpfreaks.com/topic/68346-links-to-database/
Share on other sites

I would guess that you could just make another category link and then add to the if statement (that I'm guessing you already have on links.php) so that if it's whatever category it will display everything.

 

I don't really know enough about what you're doing to actually show you any code . . . hope that helps. If not . . . you can thank me for the bump! lol

Link to comment
https://forums.phpfreaks.com/topic/68346-links-to-database/#findComment-343646
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.