Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title>TheForums</title>
- </head>
- <body>
- <?php
- error_reporting(E_ALL);
- ini_set('display_errors', 1);
- require_once('fourmsAPI.php');
- /*
- function tinyf_forums_get($extra ='')
- {
- global $tf_handle;
- $query = sprintf("SELECT * FROM `forums` %s",$extra );
- $qresult = mysqli_query($tf_handle, $query);
- if (!$qresult)
- return NULL;
- $recount = mysqli_num_rows($qresult);
- if ($recount == 0)
- return NULL ;
- $forums = array();
- for($i = 0 ; $i < $recount ; $i++)
- $users[count($forums)] = mysqli_fetch_object($qresult);
- //mysql_free_result($qresult);
- return $forums;
- }
- */
- $forums = tinyf_forums_get();
- if($forums == NULL)
- {
- die('problem');
- }
- $fcount = count($forums);
- if($fcount == 0)
- {
- die('No Forums ');
- }
- ?>
- <ul type = "square">
- <?php
- for($i = 0 ; $i < $ucount ; $i++)
- {
- $forum = $forums[$i];
- echo "<li><a href = \"forums.php?id=$forum->id\"> $forum->title <a/> <br/> $forum->desc <br/> </li>"; //$array ->
- }
- ?>
- </ul>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement