One hint I found once when you get that is to change the heaeder into an include ... works the same.
Printable View
One hint I found once when you get that is to change the heaeder into an include ... works the same.
:O your code is exactly the same as mine, i use mine as an admin area were you can create users when your logged in, add news, add affiliates, update your profile, PM other admins
im still testing out some features though :(
LMAO cool i guess :$
---
Bump ^_^ Need more help
Ok i sorted that above out Wooteh xD
I tested it, it all works FINE! But... when a eror comes 'Username has aready been sued' it comes up in top left hand corner of iframe over my text any way of moving it?
----------------------------- another error ROFL!
Ok i have now made a stats page :0 here is the error :
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home2/extreme/public_html/login/stats/stats.php on line 26
Fatal error: Call to undefined function: odiv() in /home2/extreme/public_html/login/stats/stats.php on line 40
here is content :
PHP Code:<?php
// set your infomation.
$dbhost='localhost';
$dbusername='****';
$dbuserpass='****';
$dbname='****';
session_start();
// connect to the mysql database server.
mysql_connect ($dbhost, $dbusername, $dbuserpass);
mysql_select_db($dbname) or die('Cannot select database');
?>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<?
echo "<tr>
<td width=\"20%\"><b>Date:</b></td>
<td><b>Unique Hits:</b></td>
<td><b>Page Hits:</b></td>
<td><b>Most Users Online:</b></td>
</tr>";
$query = "SELECT * FROM daystats order by id DESC LIMIT $limitvalue, $pp";
$result = mysql_query($query);
while($r=mysql_fetch_array($result))
{
echo "<tr>
<td width=\"20%\">$r[date]</td>
<td>$r[u]</td>
<td>$r[p]</td>
<td>$r[peak]</td>
</tr>";
}
oDiv("Totals");
$averageperday = round($totalh/$total);
echo "Unique Hits: $totalh<br>Page Views: $totalpages<br>Last Reset: $since<br>Days Recorded: $total<br>Average Hits Per Day: $averageperday";
?></table>
LOL php nooby.
Errr shut the **** up will you?
Thank you.
y not contact the author on hu wrote the tutorial. theres always an email there :p
Zainx i havent used a tut for that above :l that is what i have done cant u tell my the errors ROFL!
so u and exignma just happen to share the same brain as he sed: O your code is exactly the same as mine.
hmmm
lmao i said i havent used a tut for that above :l noob. read and reread then post :l