GhostWire Studios :: Flash Components :: PHPObject

Forum Rules PHPObject

Please note that GhostWire Studios do not provide support for PHPObject. This is a peer-to-peer support area. Please try to help each other out to the best of your ability.

Thanks and enjoy!

Reply to this topicStart new topicStart Poll

> mysql fetch documentation
Posted: May 29 2005, 02:56 AM
Quote Post


Group: Members
Posts: 3
Member No.: 4761
Joined: 20-April 05

I can't get any of the methods in the documentation to work for me:
The below is the only method I have found that works for me

$rs = array();
while ($row = mysql_fetch_array($this->_result, MYSQL_NUM))

return $rs;

Flash responder is the same as in the documentation for mysql_fetch_object:

myFoo.getRecords_onResult = function(result)
var j = result.length;
for (var i=0; i<j; i++)
// displays records in the output panel
trace("---Record "+i+"---")
for (var a in result[i])

Any ideas why this is the only way that works in my code?
(I think I can use the for in loop only to parse the data this way, but haven't tested it yet).

Also, how can I format the data in actionscript with a new line for each result? I am new to flash, but managed to get most of it working, although it's probably not the best code..

Reply to this topicStart new topicStart Poll