How to print a page using javascript for every php while loop?
<p>I want to print a page using javascript in php while loop. Please help me by giving an advice.</p>

<p>eg:</p>

<pre><code>$q=mysql_query("SELECT name, address FROM member_table);
while ($r=mysql-fetch_row($q)){
echo $r['0']."&lt;br /&gt;".$r['1'];
echo 'javascript:window.print()';
}
</code></pre>

<p>But this is not working. Please help me.</p>

<p>I want to print the page similiar to Print But this should be automatic as while condition will bring more result in looping process</p>

<p>Is there any way to send the page directly to printer one by one from loop or other method. Please help me by giving an example</p>
