Re: Exporting data from database using fopen

From: Date: Fri, 13 Aug 2004 16:32:53 +0000
Subject: Re: Exporting data from database using fopen
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-193716@lists.php.net to get a copy of this message
Hi Vern, Vern wrote:
Sorry the previous post got sent prematurely.
this one, too. #
It does work, however, the problem is in the
            fwrite($fp, "$rsITEMS->Fields('item_id')\n");
I KNOW, this was the 2nd change in my code-sniplet ;o)
what gets written to the file is exactly "$rsITEMS->Fields('item_id')" for
that's exactly, what you ask php to write. You can do nearly anything in php in strings. but not call functions. $rsITEMS->Fields('item_id') call a Method in a Class. It's not an array or something. It's a FUNCTION-CALL. You can't call funtions from within strings. echo "Hello ucfirst('world')"; results in: Hello ucfirst('world') echo "Hello ".ucfist('world'); results in Hello World () != [] != {} ;o)
[...] Here's the code again:
No, thanks. Have a nice weekend Ste'smar-ass'phan

« previous php.general (#193716) next »