Hello please help me

how to convert each rows in my database (i use phpmyadmin) to eah pages
ie if i have 1000 rows convert to 1000 pages.
i have try below script

$i=0;
while ($i < $num) {

echo "<html> <title> </title> <body> <b> <img src=$imageurl > <br> $name </b> <br> $keywords <br> price:$CURRENCY $price <br> <p><a href=$buyurl> <b>Buy click here </b><hr></a></p>
</body> </html> ";

++$i;
}


but it just displaying in 1 page so 1 page=10mb

please help me