I got it. In case anyone is interested. I changed the code so that the field value was a became the variable $name and it worked.
$name = $rsITEMS->Fields('item_id'); fwrite($fp, "$name\n"); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php