php & mysql
Posted: Tue Nov 30, 2004 3:13 pm
hello i have a code that shows recent posts in forums..the piece of code im working with is
i only want it to display the topics in a certain forum...so my question is how can i make the code only pull out the posts from ".$prefix."_bbforums when the forum_id is 2
Code: Select all
$result1 = sql_query( "SELECT auth_view, auth_read FROM ".$prefix."_bbforums where forum_id = '$forum_id'", $dbi );