PDA

View Full Version : code to put in phpinclude....


drives fast
04-09-2003, 01:42 AM
I am looking for the code I would put into phpinclude to display the forum title then forum thread count and finally below that the forum description?

I have a seperate php page that I am playing with and want to display that information for a specific forum id on it

the forum id is 150 on my forum

I have tried this:
//test
$result = mysql_query("SELECT forumid,title,description FROM forum WHERE 1 AND forumid = 150");
$forum150 = mysql_result();
//end test
but of course that brings an error at the top of the page

I have been trying many things but am aparently php stupid

thank you in advance for your help

drives fast
04-09-2003, 01:46 AM
I guess the simple explanation of what I want to do is display the same thing that is displayed in the forumlist but only one forumid

being able to click on the forum title and all that.

thanks again

drives fast
04-09-2003, 01:59 AM
got a little closer (I think)

I tried this:
$result = mysql_query("SELECT forumid,title,threadcount,description FROM forum WHERE 1 AND forumid = 150");
$forum150 .= "<a href=\"forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]\"><normalfont><b>$forum[title]</b></normalfont></a>&nbsp; &nbsp; <normalfont><b>($forum[threadcount])</b></normalfont>
<br><smallfont>$forum[description]</smallfont>";

and I got it to display the ()

lol...still trying but could sure use an expert

drives fast
04-09-2003, 02:08 AM
I think I see where that went wrong

should I be creating a new template and have the $forum150 .= call that template?

drives fast
04-09-2003, 02:55 AM
well...I am lost now :)

drives fast
04-10-2003, 11:48 AM
was it something I said?

drives fast
04-11-2003, 01:49 PM
not one single suggestion or comment huh.

thanks

drives fast
04-17-2003, 07:33 PM
I figured it out and since I received so much kindness and friendly help...I will return the favor and post the code...
yea right

thanks

filburt1
04-17-2003, 07:41 PM
It's not like we're under a contractual obligation to help you at a moment's notice...

drives fast
04-17-2003, 07:47 PM
and I understand that more than anyone....ever.....but I see lots of things being answered all the time and help given all the time.

I mostly noticed that help was more redily given to those that are trying and not just wanting someone to do everything for them but I got squat on this one and I was really trying....... and I returned the favor.

if you do not want to help anyone....why open a site for helping someone? If you only want to help a few....make the site private by invite only....otherwise treat everyone the same.

as I said......."thank you"

drives fast
04-18-2003, 02:14 AM
oh and by the way.....
It's not like we're under a contractual obligation to help you at a moment's notice...
if you notice the dates of starting this thread and ending......you act like I was impatient when I clearly was not....5 days is not "a moments notice"

as you can tell I am a little ticked off about this and your comment was un-called for.