jon4433 Posted March 23, 2012 Share Posted March 23, 2012 Like the title says. I have 4 of the same number in my database, but I only want my website to display one of the 4. How can I do something like this? Quote Link to comment https://forums.phpfreaks.com/topic/259564-4-of-the-same-number-in-the-database-but-only-want-to-show-one-of-them/ Share on other sites More sharing options...
smerny Posted March 23, 2012 Share Posted March 23, 2012 cant be specific since you weren't really... but your keyword will be DISTINCT SELECT DISTINCT column FROM table Quote Link to comment https://forums.phpfreaks.com/topic/259564-4-of-the-same-number-in-the-database-but-only-want-to-show-one-of-them/#findComment-1330511 Share on other sites More sharing options...
jon4433 Posted March 23, 2012 Author Share Posted March 23, 2012 Thank you. Works fine now Quote Link to comment https://forums.phpfreaks.com/topic/259564-4-of-the-same-number-in-the-database-but-only-want-to-show-one-of-them/#findComment-1330517 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.