I'm trying to take the contents of a table and write them to a file on my
server. Everything seems to function ok (AKA no errors) but no file gets
written ... I can't figure out why. Can anyone shine some light on this dark

          $db = mysql_connect("localhost","cloft","spring");


          // get requests from table
          $result = mysql_query("SELECT * FROM catalogreq WHERE PROCESSED IS

          $fp = fopen("$DOCUMENT_ROOT/catalogreq/catalogs.txt","w");

          fwrite($fp, $result);


          $updatereq = mysql_query("UPDATE catalogreq SET PROCESSED = 'Y'");

          echo "Thank you!";

Thanks for any help!

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to