homepage Welcome to WebmasterWorld Guest from 54.237.98.229
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Databases
Forum Library, Charter, Moderator: open

Databases Forum

    
Displaying mysql data
Illfigureitout



 
Msg#: 4346504 posted 4:17 am on Aug 2, 2011 (gmt 0)

I have a table with ID, firstname, status and above the table I want 4 links that read all, hot, warm, cold. By clicking on the link the table below will only show those users whose status = hot. Is it best to create new pages in php to display all the users for the corresponding status or is there a better way to do it so that it's all done one a single page?

Thank you in advance!

 

rocknbil

WebmasterWorld Senior Member rocknbil us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4346504 posted 3:54 pm on Aug 2, 2011 (gmt 0)

select * from users where status = 'hot'

Then in your while loop, output links to the individual users (?)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Databases
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved