hello folks; no one in the database forum knows what's up with this, so here goes--
I need to return 3 fields (in approx. 2,000 records) into an array. A 2D array is fine, if necessary.
this doesn't work (parse error):
while(OCIFetch($debut_execute)) { $debut_item[OCIResult($debut_execute, "SUBP_DISPLAY")] = 'OCIResult($debut_execute, "MASKU_SCLRFK")', 'OCIResult($debut_execute, "MD_LEGACY")'; }
and neither do any of the variations of it that I try. Parse errors.
- This doesn't return an error, but I have no idea if it's working properly, because it prints, for example "12345 is Array".
while(OCIFetch($debut_execute)) { $legacy = OCIResult($debut_execute, "MD_LEGACY"); $color_code = OCIResult($debut_execute, "MASKU_SCLRFK"); $debut_item[OCIResult($debut_execute, "SUBP_DISPLAY")] = array($legacy,$color_code); } for ($i = 0; $i < count ($debut_item); $i++) { $line = each ($debut_item); print ("$line[key] is $line[value]<br>"); }
many thanks for any help, folks. knelson.