ODBC_PHP4
| From: | Maurizio Piccolo | Date: | Wed, 21 Jun 2000 16:33:34 +0000 |
| Subject: | ODBC_PHP4 | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-548@lists.php.net to get a copy of this message | ||
Evrything is working with my connection to odbc database
But in the cicle for something in php4 is wrong
.
.
.
$res=odbc_exec($conn, $squery);
while ($myrow = odbc_fetch_row($res)) {
for ($p=1; $p=10; $p++){
$value=odbc_result($res,$p);
$strcsv=$strcsv.",".$value.",";
}
}
i this case i obtain a cicle that never end with a value(still the same)
of a filed
insted if i use 1,2..
$valuea=odbc_result($res,1);
$valueb=odbc_result($res,2);
.
.
.
.
it works, it seem to be that i can't use odbc_result($res,$p) in a for
cicle.
Since i have a database with 60 filed i would like use a cicle
Any suggest?