Services webmasters
Partenaires
Jeux concours gratuits
 
ora_exec
<<<
ora_fetch_into ora_fetch
>>>

7.74 Oracle
7 Index des fonctions
 Manuel PHP

Introduction
Installation
Constantes prédefinies
ora_bind
ora_close
ora_columnname
ora_columnsize
ora_columntype
ora_commit
ora_commitoff
ora_commiton
ora_do
ora_error
ora_errorcode
ora_exec
->ora_fetch_into
ora_fetch
ora_getcolumn
ora_logoff
ora_logon
ora_numcols
ora_numrows
ora_open
ora_parse
ora_plogon
ora_rollback

7.74.16 ora_fetch_into()Lit une ligne de résultat Oracle dans un tableau

[ Exemples avec ora_fetch_into ]   PHP 3, PHP 4

int  ora_fetch_into ( resource   cursor , array   result , int   flags )

ora_fetch_into lit la ligne courante du résultat cursor dans le tableau result .

ora_fetch_into retourne le nombre de colonnes lues.

Exemple avec ora_fetch_into

<?php
$results
= array();
ora_fetch_into($cursor, $results);
echo
$results[0];
echo
$results[1];
$results = array();
ora_fetch_into($cursor, $results, ORA_FETCHINTO_NULLS|ORA_FETCHINTO_ASSOC);
echo
$results['MyColumn'];
?>
Notez que vous devez passer le tableau par référence;

Voir aussi ora_parse , ora_exec , ora_fetch et ora_do .

<< ora_fetch_into >>
ora_exec Oracle ora_fetch
Services webmasters
Les manuels
 
CoursPHP.com - Reproduction interdite -