-MAIN
-BEV STATUS
-DISH STATUS
-NAGRA2 FAQ
-NEWBIES
-GUIDES
-FILES
-FORUM
-CHAT
-SPONSORS
|
// MySQL Connection Information
$db_server = "localhost"; // The name of your server
$db_username = "dishnewbies"; // The MySQL username
$db_password = "np32rw2h"; // The MySQL password
$db_name = "dishnewdb1"; // The name of the database where your forums are installed
// Variables
$ibf_topics = "ibf_topics"; // Name of the table where your topics are
$ibf_posts = "ibf_posts"; // The name of the table where your posts are stored
$forum_id = "17"; // The forum ID of the forum you wish to export
$url = "Forum/index.php"; // The full URL to your forums
$limit = "5"; // The amount of topics at max you want to be exported
####################################################
mysql_connect("$db_server","$db_username","$db_password");
mysql_select_db("$db_name");
$sql_topic = mysql_query("SELECT * FROM $ibf_topics WHERE forum_id='$forum_id' LIMIT 0,$limit") or print mysql_error();
while($topic=mysql_fetch_array($sql_topic))
{
$news_sql = mysql_query("select * from $ibf_posts WHERE topic_id='$topic[tid]'");
$post=mysql_fetch_array($news_sql);
$date = date ("D, j M Y h:i A" ,$post["post_date"]);
print "
$post[post]
";
}
mysql_close();
?>
|