From:
Operating system: Win
PHP version: 5.3.1
Package: OCI8 related
Bug Type: Feature/Change Request
Bug description:use oci8 result with smarty
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
--
Edit bug report at http://bugs.php.net/bug.php?id=51202&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=51202&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=51202&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=51202&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=51202&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=51202&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=51202&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=51202&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=51202&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=51202&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=51202&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=51202&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=51202&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=51202&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=51202&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51202&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51202&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=51202&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=51202&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=51202&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=51202&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=51202&r=mysqlcfg