2013-10-09, 01:17 AM
Ok so I installed the PHP in templates plugin for my forums. While trying to add some PHP into the files it worked.
This is my PHP Code:
How I am using it:
How it is turning out on the website:
Any help would be greatly appreciated. Thank you!
PS- All MySQL info has been changed
This is my PHP Code:
<?php
mysql_connect("localhost", "mysqluser", "mysqlpass") or die(mysql_error());
mysql_select_db("mysqldatabase") or die(mysql_error());
$online = mysql_query("SELECT * FROM online WHERE id = 1");
$totalonline = mysql_fetch_array($online);
?>
How I am using it:
<center>There are currently <FONT COLOR="#00FF00">$totalonline</font> players playing CarnagePk!
How it is turning out on the website:
Any help would be greatly appreciated. Thank you!
PS- All MySQL info has been changed