note 68770 added to function.odbc-result-all
| From: | resultofodbc_result_allintoanarray at osu1 dot php dot net | Date: | Thu, 10 Aug 2006 07:22:26 +0000 |
| Subject: | note 68770 added to function.odbc-result-all | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-115747@lists.php.net to get a copy of this message | ||
global $tableau;
function callback($buffer)
{
global $tableau;
$tableau=array();
$tab=explode("</tr>",$buffer);
array_pop($tab);
$entete=explode("</th>",substr($tab[0],11));
array_pop($entete);
foreach($entete as $numcol => $nomcol)
{ $entete[$numcol]=substr($nomcol,4); }
array_shift($tab);
foreach($tab as $numligne => $ligne)
{
$ligne=explode("</td>",substr($ligne,5));
array_pop($ligne);
foreach($ligne as $numcol => $cellule)
{
$tableau[$numligne][$entete[$numcol]]=
htmlentities(substr($cellule,4));
}
}
}
$req = "select * from table";
$res = odbc_do($id_conn, $req);
ob_start("callback");
odbc_result_all($res);
ob_end_flush();
ob_implicit_flush(0);
----
Server IP: 195.221.21.36
Probable Submitter: 193.251.92.82
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.odbc-result-all.php
Edit -- https://master.php.net/note/edit/68770
Del: integrated -- https://master.php.net/note/delete/68770/integrated
Del: useless -- https://master.php.net/note/delete/68770/useless
Del: bad code -- https://master.php.net/note/delete/68770/bad+code
Del: spam -- https://master.php.net/note/delete/68770/spam
Del: non-english -- https://master.php.net/note/delete/68770/non-english
Del: in docs -- https://master.php.net/note/delete/68770/in+docs
Del: other reasons-- https://master.php.net/note/delete/68770
Reject -- https://master.php.net/note/reject/68770
Search -- https://master.php.net/manage/user-notes.php