Hey All,
In my script, I am attempting to build a session variable containing an array of items I got out of a recordset. As I loop through the recordset in a while loop, I am using array_push to add those database values to my session array.
The problem is that this process is taking way more time then should be required to build the array. It takes 3 seconds to create. I am posting my code, and if anyone knows of a function or technique to reduce the time--please let me know.
[code=php]while($topics_row=oci_fetch_assoc($topics_query)){
if($topics_row['IS_UNIVERSAL']==1){
array_push($_SESSION['univ_extra'],array('EXTRA_ID'=>$topics_row['EXTRA_ID'],
'EXTRA_ID'=>$topics_row['EXTRA_ID'],
'EXTRA_ID'=>$topics_row['EXTRA_ID'],))[/code]
The actual array contains 12 fields per row, I just included a few sample lines to show my code. Thanks for any help!
php_dev