Ever wanted to have a mysql result in php like this:

"$mysql_result" = Array [3]
 0 = Array [21]
     ID = 3
     OF_ID = 2
     OF_ParentID = 1
     ...
 1 = Array [21]
 2 = Array [21]

and iterate over the result like that:

for ($iterator=0; $iterator{
     $object = $mysql_result[$iterator];
     print "ID:";
     print $object['ID'];
     print "<br/>";
     print $object;
 }

download this file:connect_to_mysql_test.php and connect_to_mysql_class.php

in your htdocs / php-enabled-directory / PDT-Project.

admin