Menu
Home
Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Log in
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Home
Forums
Main
Forum Feedback - Log-in Problems
Last 10 forum posts
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
<p>[QUOTE="N.B., post: 19364, member: 1"]</p><p>[PHP]</p><p><?php</p><p>$sql_id_forum=sql_connect("HOSTNAME","USERNAME","PASSWORD","DATABASENAME");</p><p>$query = "SELECT threadid, title FROM thread WHERE forumid != 3 AND forumid != 21 AND forumid != 22 AND forumid !=44 ORDER BY threadid DESC limit 0,10";</p><p>$result = sql_query($query,$sql_id_forum);</p><p>$numrows = sql_num_rows($result);</p><p></p><p></p><p>$content = "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" valign=\"top\">";</p><p>while(list($threadid, $posttitle) = sql_fetch_row($result, $dbi)) {</p><p> $posttitle = str_replace ("_", " ", $posttitle);</p><p> $posttitle = str_replace (".", " ", $posttitle);</p><p> $content .= "<strong><b>·</b></strong> <a href=\"http://forum.cdrsoft.cc/showthread.php?threadid=$threadid\" target=\"_blank\">$posttitle</a><br>";</p><p>}</p><p></p><p>$query = "SELECT userid, lastactivity FROM session";</p><p>$result = mysql_query($query,$sql_id_forum);</p><p>$users = 0;</p><p></p><p>while(list($userid, $lastactivity) = sql_fetch_row($result, $dbi)) {</p><p> $date = time()+160;</p><p> if($lastactivity >= ($date - 15*60))</p><p> $users++;</p><p>}</p><p>$content .= "<br><br>$users users online";</p><p>$content .= "</table>";</p><p>sql_logout($sql_id_forum);</p><p>?></p><p>[/PHP]</p><p>[/QUOTE]</p>
[QUOTE="N.B., post: 19364, member: 1"] [PHP] <?php $sql_id_forum=sql_connect("HOSTNAME","USERNAME","PASSWORD","DATABASENAME"); $query = "SELECT threadid, title FROM thread WHERE forumid != 3 AND forumid != 21 AND forumid != 22 AND forumid !=44 ORDER BY threadid DESC limit 0,10"; $result = sql_query($query,$sql_id_forum); $numrows = sql_num_rows($result); $content = "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" valign=\"top\">"; while(list($threadid, $posttitle) = sql_fetch_row($result, $dbi)) { $posttitle = str_replace ("_", " ", $posttitle); $posttitle = str_replace (".", " ", $posttitle); $content .= "<strong><b>·</b></strong> <a href=\"http://forum.cdrsoft.cc/showthread.php?threadid=$threadid\" target=\"_blank\">$posttitle</a><br>"; } $query = "SELECT userid, lastactivity FROM session"; $result = mysql_query($query,$sql_id_forum); $users = 0; while(list($userid, $lastactivity) = sql_fetch_row($result, $dbi)) { $date = time()+160; if($lastactivity >= ($date - 15*60)) $users++; } $content .= "<br><br>$users users online"; $content .= "</table>"; sql_logout($sql_id_forum); ?> [/PHP] [/QUOTE]
Preview
Name
Verification
Post reply
Home
Forums
Main
Forum Feedback - Log-in Problems
Last 10 forum posts
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top