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.
liked this article?
- only together we can create a truly free world
- plz support dwaves to keep it up & running!
- (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
- really really hate advertisement
- contribute: whenever a solution was found, blog about it for others to find!
- talk about, recommend & link to this blog and articles
- thanks to all who contribute!