mysql - PHP display id with the same value in a column -
hello have table equal values

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

what want

how possible?
Comments
Post a Comment