hy i have question i have this code and i whant to print it one by one not all the page the script is
<?php
$qry=mysql_query("SELECT * FROM articles order by articles.id DESC ", $con);
if(!$qry)
{
die("Query Failed: ". mysql_error());
}
/* Fetching data from the field "title" */
while($row=mysql_fetch_array($qry))
{
echo " <section class=content invoice> ";
echo "<h2>".$row['category']."</h2><br>";
echo "<input type=submit name=submit id=submit class=btn btn-primary value=Edit onclick=window.location='edit_article.php?id=".$row['id']."'; /> ";
echo "<input type=submit name=submit id=submit class=btn btn-primary value=Delete onclick=window.location='delete_article.php?id=".$row['id']."'; /><br> ";
echo "<table class='table table-bordered table-hover'><tr><th>/</th><th>Caricati</th><th>Scaricati</th><th>Diferenza</th></tr><tr><td>carelicc</td><td>".$row['CarrelliCC']."</td><td>".$row['CarrelliCC2']."</td><td>".$row['q1']."</td></tr><tr><td>carelli</td><td>".$row['Carrelli']."</td><td>".$row['Carrelli2']."</td><td>".$row['q2']."</td></tr><tr><td>rinze</td><td>".$row['Ripiani']."</td><td>".$row['Ripiani2']."</td><td>".$row['q3']."</td></tr><tr><td>pro</td><td>".$row['Prolunghe']."</td><td>".$row['Prolunghe2']."</td><td>".$row['q4']."</td></tr><tr><td>doppio</td><td>".$row['DoppieProlunghe']."</td><td>".$row['DoppieProlunghe2']."</td><td>".$row['q5']."</td></tr></table>";
echo "<button class=btn btn-default onclick=window.print();><i class=fa fa-print></i> Print</button>";
echo "</section>";
}
?>
and its print all...all the rows...