It is possible to create a loop so that css styles are applied to the data from mysql. Here is a sample code:
<div id="topContainer"><? do { echo $result->fetch_assoc; echo '<p>Name: <b>'.$rows['name'].'</b></p>'; echo '<p>Year: <b>'.$rows['year'].'</b></p>'; } while ($rows=$result->fetch_assoc()); ?></p> </div> For data that is displayed for the first time, css styles are applied, and the rest are already without styles, how can you make it apply to this style too?
do-whilesyntax. In this situation, it is better to justwhile. - borodatych