Lets say I have 5 rows with the same data
|id|
--
|1 |
--
|1 |
--
|1 |
--
|1 |
if I echo those results out I’m gonna get 1111 but I only want to select duplicate records one, so instead I would get 1.
is this possible?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
GROUP BY id;in your mysql statementAlthough I am not sure why you have duplicate IDs in your database — that should be remedied.