ODBC_PHP4

From: Date: Wed, 21 Jun 2000 16:32:42 +0000
Subject: ODBC_PHP4
Groups: php.windows 
Request: Send a blank email to php-windows+get-563@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?

« previous php.windows (#563) next »