lauguipoat
New Member
I have a loop and each time the loop runs, I want it to echo a new div inside which there is a php variable. Here's my code at the moment: \[code\]<?php$i = 1;while($i <= 5){ echo "<div class=\"box\"><p>"$confessions[$i]"</p></div>" $i++;}?>\[/code\]However, this isn't working. What's the correct way to do something like this?Thanks