Problem in Export csv file in php
<p>I need to export csv file in php using mysql query .But when i export filename like this "yourfilename.csv_".</p>

<p>My code is </p>

<pre><code>header("Content-type: application/csv");

header("Content-Disposition: \"inline; filename=yourfilename.csv\"");  

$query = "SELECT * FROM login";

$result = mysql_query($query) ;

echo "username ,password \r\n";

while($row = mysql_fetch_array($result))
{
    echo "$row[user],$row[pass]\r\n";  
}  
</code></pre>

<p>I need file name "yourfilename.csv".</p>
