Adding PHP table to mySQL files
<p>hey guys this maybe a stupid question for you but I have a database containing footballers names (please see screen shot) What i need to do is display maybe 5 names side by side and then 5 below, if that make sense. is there an easy way to do this?</p>

<p>the code i currently have after the established connect is</p>

<pre><code>        $sql = "SELECT ID, NAME FROM players";
        $result = $conn-&gt;query($sql);


        if ($result-&gt;num_rows &gt; 0) {
            // output data of each row
            while($row = $result-&gt;fetch_assoc()) {
                // Outputting HTML and the data from the DB. Change to $row['the name of the field you want']
                echo "&lt;div class='caption'&gt;&lt;h3&gt;&lt;img src='http://placehold.it/180x180' alt=''&gt;" . $row['NAME'] . "&lt;/h3&gt;&lt;p&gt;";
            }
        } else {
            echo "No players to show";
        }
        $conn-&gt;close();
    ?&gt;
</code></pre>

<p>is it CSS i should be focusing on to make this look the way i want it?
sorry i am a new at this and cant get my head around it lol </p>

<p><a href="https://i.stack.imgur.com/GAo6R.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GAo6R.jpg" alt="enter image description here"></a></p>