![]() |
| ||
| PHP Help - Display forum online and total members on main page Hey.. I've been trying for quite some time now to figure out how to display statistics from my phpbb forum on my main page which is just plain html. Now I've got so far that I have an iframe which will display a PHP file called member_stat.php ... The problem is with getting the php file to read the database and output the information. I was wondering if anyone here could help me with this problem by perhaps telling me how the php code should look or what I need to do to get it to display the info I want on my main page. :-| |
| ||
| Re: PHP Help - Display forum online and total members on main page Here is a Daniweb thread where I show a code example to connect to a mysql db, select a db, create a query, execute it, and work with the resulting data. http://www.daniweb.com/techtalkforum...=mysql_connect There are a LOT of threads here on Daniweb in the PHP forum that will show you similar examples. You could also get almost the same code examples from the excellent PHP website. PHP's MySQL Introduction http://www.php.net/manual/en/ref.mysql.php More specific code examples can be found by looking at the various mysql function documentation pages. For example, the mysql_fetch_array() documentation: http://www.php.net/manual/en/functio...etch-array.php |
| ||
| Re: PHP Help - Display forum online and total members on main page Hey I ment to close this... my mistake. I figured out what was wrong with my code I will show you what I came up with. <?php The problem I was having was with // Performs query selcting all fileds in the table but I got it now.. hope this serves useful to any phpbb users... :D |
| All times are GMT -4. The time now is 1:31 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC