Hi there,

I entered the code in as you described below, and it LOOKS on the screen as
thought it is doing it, but when I look at the server there is no output
file, can you see anything obvious that I am doing wrong?

Thanks for your help.


$connection = mysql_connect("localhost","xxxxxx","xxxxxx") or die("Couldn't
make a connection.");

// select database
$db = mysql_select_db("mailinglist", $connection)
 or die("Couldn't select database.");
 return $connection;

$query = mysql_query("select * from emaillist");
fopen("/web/newsletter/test.txt", w);
while ($row = mysql_fetch_array($query))
echo $row[EMail];

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to