# Container for FOR LOOP

**URL:** <https://forum.kirupa.com/t/container-for-for-loop/134104>\
**Category:** Uncategorized\
**Created:** [January 14, 2005, 5:40pm UTC](https://forum.kirupa.com/t/container-for-for-loop/134104 "2005-01-14T17:40:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rockstar](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@Rockstar](https://forum.kirupa.com/u/Rockstar)\
**Post date:** [January 14, 2005, 5:40pm UTC](https://forum.kirupa.com/t/container-for-for-loop/134104/1 "2005-01-14T17:40:45Z")

</div>

Hi

I have this code, and you notice there is a FOR LOOP, I want to be able to show the result inside $content [see: I WANT TO INSERT IT HERE]

How do you do that?

```auto

for ($i=1; $i<$num_page;$i++){
	echo ($i . "&nbsp;");
}'
  

while ($row = mysql_fetch_array($query_result)) {
	
   $content .="
	<div class=\"blogLCSubject\">I WANT TO INSERT IT HERE</div>";
				
							

```
