|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-03-05 08:03 UTC] sixd@php.net
[2010-03-05 08:04 UTC] sixd@php.net
-Status: Assigned
+Status: Bogus
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 11:00:02 2025 UTC |
Description: ------------ Hi I use oci8 php file to connect with oracle db like this: then, I use smarty file to display data I would like to use smarty file to display array data i got only one record with foreach statment (my table contains many records) Test script: --------------- in php file: $conn = oci_connect('username', 'passwd', ip-server/My_db'); $query = 'select * from my_table'; $stid = oci_parse($conn, $query); oci_execute($stid, OCI_DEFAULT); $row = oci_fetch_array($stid, OCI_ASSOC); in smarty file: {foreach from=$row item=soso} {foreach from=$soso item=fofo} {$fofo} {/foreach} {/foreach} Actual result: -------------- 10359 4 1 14-JAN-10 119 2010 5