Hi, i have idea to make a simple code to show last 10 new forums.
Something like:http://www.rusnakweb.com/forum/showthread.php?tid=528
Could someone do this?
I'm sure this is easy for someone with PHP knowledge, I hope someone can get this done..
I would like something like this as well. Too bad my PHP knowledge is close to 0. ><
PHP Code:
<?php
$connect = mysql_connect('localhost', 'yourdbuser', 'yourpass');
mysql_select_db('nameofdatabase');
$query = "SELECT * FROM hosted_forums LIMIT 0,10 ORDER BY id DESC";
$result = mysql_query($query);
$i = 1;
foreach($result as $forum)
{
echo $i.'. '.$forum['fname'];
$i++
};
?>
Try that, obviously putting your db info in. Don't know if it works as I haven't tried it but feel free to give it a go.[/php]
Well I see that link.Looks cool.
It seems useful to me,and also informative.Please keep sharing in future..
hiiiiiiiiiiiiiiiiiiiii
helloo
I am sure that by now someone must have successfully managed to make the code by which we can access the last 10 new forums!! It seems simple enough if you have any knowledge of PHP! It's great that we have forums like these where we can share our ideas and make suggestions that are useful to our mutual benefit and help us make our jobs so much easier and simpler!! Keep sharing and helping each other!!
It sounds great. I was looking for such from a long time. It is really fruitful for me. I will soon take the advantage of it.
I am sure by now someone must have gotten the code by which we can access the latest 10 new forums! Seems pretty simple if you have some knowledge of PHP! It is great that we have forums like this where we can share our ideas and make suggestions that are useful for our mutual benefit and help us make our work easier and simpler!