note 93737 modified in class.com by danbrown

From: Date: Fri, 25 Sep 2009 17:12:15 +0000
Subject: note 93737 modified in class.com by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-161062@lists.php.net to get a copy of this message
On a query reply using ADODB.Connection object, all my $rs->Fields['field_name']->Value returned variable Object when inserted into a array, like this: <?php for ($rl[$v]=array(),_qm($_query);!$res->EOF;$res->MoveNext()) { $rl[$v][]=$res->Fields['x']->Value; } ?> I figured out that converting the value into a INT fixed the issue: <?php $rl[$v][]=intval($res->Fields['x']->Value); ?> --was-- On a query reply using ADODB.Connection object, all my $rs->Fields['field_name']->Value returned variable Object when inserted into a array, like this: for ($rl[$v]=array(),_qm($_query);!$res->EOF;$res->MoveNext()) { $rl[$v][]=$res->Fields['x']->Value; } I figured out that converting the value into a INT fixed the issue: $rl[$v][]=intval($res->Fields['x']->Value); http://php.net/manual/en/class.com.php

« previous php.notes (#161062) next »