Re: correctly replaced?
| From: | Richard Davey | Date: | Thu, 04 Mar 2004 13:08:38 +0000 |
| Subject: | Re: correctly replaced? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179435@lists.php.net to get a copy of this message | ||
Hello Torsten,
Thursday, March 4, 2004, 1:20:18 PM, you wrote:
TL> I'm not sure, is this
TL> $val_matrix[$i][$k]= OCIResult($stmt,".$column_array.");
TL> -----------------
TL> a correct replacement for
TL> $val_matrix[$i][$k]= OCIResult($stmt, 'COLUMN_NAME');
TL> -------------
TL> If I use '".$column_array."' the coloring of my editor tells me that it
TL> might be wrong. Unfortunately I cannot test it right now...
It doesn't look correct to me, I would have thought it should be:
$val_matrix[$i][$k]= OCIResult($stmt, "$column_array");
I can't see why you need the fullstops (periods). The above will work
IF $column_array = COLUMN_NAME as required.
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html