subnet_rx Posted August 14, 2007 Share Posted August 14, 2007 I'm getting some data from a database, but there are duplicates for every entry. For instance, if you looked a table of posts for this forum, you'd see posts and the author. I'm getting the author, so there could be hundreds or more of repeats. I'd like to basically get all the uniques in a column. Quote Link to comment https://forums.phpfreaks.com/topic/64917-solved-removing-duplicates/ Share on other sites More sharing options...
Orio Posted August 14, 2007 Share Posted August 14, 2007 Simple SQL Distinct. Orio. Quote Link to comment https://forums.phpfreaks.com/topic/64917-solved-removing-duplicates/#findComment-323915 Share on other sites More sharing options...
subnet_rx Posted August 14, 2007 Author Share Posted August 14, 2007 Very simple, I was putting everything in an array and using array_unique. I knew there had to be a better way. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/64917-solved-removing-duplicates/#findComment-323958 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.