How to put each result of a MySQL query into a text file one by one?
<pre><code>while($row= mysql_fetch_object($result)){
    $row-&gt;products_price=$row-&gt;products_price-($row-&gt;products_price*0.05);
    echo $row-&gt;products_id ." ". $row-&gt;products_price."&lt;br/&gt;";
}
</code></pre>

<p>How can I put <code>$row-&gt;products_id ." ". $row-&gt;products_price</code> into a txt file with one row a time?</p>
