$q = "SELECT * FROM `table_name`";
$sql = mysqli_query($db_connect, $q);
while ($r = mysqli_fetch_assoc($sql))
{
echo "<tr>";
echo "<td>{$r['names']}</td>";
echo "<td>{$r['likes_count']}</td>";
echo "<td>{$r['comm_count']}</td>";
echo "<td>{$r['repost_count']}</td>";
echo "<td>{$r['togethere']}</td>";
echo "</tr>";
}
?>