PedroSoares
-
Posts
2 -
Joined
-
Last visited
Posts posted by PedroSoares
-
-
Hello guys,I'm having trouble making a loop to display the data in a table, I need the loop to display a table with the following data:example:1 2 31 2 34 5 64 5 67 8 9My code:<?phpecho '<table width="100%" border="1" cellspacing="0" cellpadding="0">';$contador = 1;while ($contador <= 10) {if($contador % 2){for($x=0;$x<2;$x++){echo "<tr><td>Registro $contador</td>";}}else{echo "<td>Registro $contador</td></tr>";}++$contador;}echo '</table>';?>Help me!
How do loop in vertical table?
in PHP Coding Help
Posted
My loop has to repeat two lines and move to the next loop, the data of an array ..