Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: Help!!!!

  1. #1
    New to the CF scene
    Join Date
    Aug 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help!!!!

    Hello people I have searched far and wide on the internet and have been unable to find a tutorial on how to do this so I wonder could someone in these forums be of any assistance. Well my friends and I have a website and we are trying to update it and we want one of the features to allow us to from a phpBB forum take the topics and puts them on a page any help or even a link to where I might find some would be awesome thank you in advance.

  • #2
    Senior Coder rafiki's Avatar
    Join Date
    Aug 2006
    Location
    Floating around somewhere...
    Posts
    2,042
    Thanks
    19
    Thanked 42 Times in 42 Posts
    try something like
    PHP Code:
    $sql mysql_query("SELECT * FROM PHPBB_table ORDER BY RAND() LIMIT 1");
    // change tablename accordingly.
    while ($row mysql_fetch_array($sql)) {
    //out put the content change the rows accordingly
    echo "$row['title'] - $row['author']";
    echo 
    '<BR />';
    echo 
    $row['content'];


  • #3
    New to the CF scene
    Join Date
    Aug 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry but is there anyway I can get some explanation as well we are for lack of a better term n00bs with php thank you


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •