mysql - PHP display id with the same value in a column -


hello have table equal values

enter image description here

and query far

$stmt = $dbc->query("select weight, group_concat(id) ids tbl_weight group weight having count(*) > 1");     while($row = $stmt->fetch(pdo::fetch_assoc)) {         echo $row['ids'] . "<br />";      } 

and output when run query is

enter image description here

what want
enter image description here

how possible?


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -