On my page is a sample of the database:
<?php $row = mysql_fetch_array(mysql_query('SELECT * FROM `myTable`); ?>
Which option is better (faster and slower), if there are more than 1000 such samples?
1 option:
<span id="textA"><?php echo $row['A']; ?></span> <span id="textAA"><?php echo $row['A']; ?></span> <span id="textAAA"><?php echo $row['A']; ?></span>
Option 2:
<span id="textA"><?php echo $row['A']; ?></span> <script> document.getElementById("textAA").textContent = document.getElementById("textA").textContent; document.getElementById("textAAA").textContent = document.getElementById("textA").textContent;
... and so on.