And here is yet another snippet variation.
This one builds the list of links to 'News and Events' that is displayed on the home page of the Pragmatic Training web site.
Best Regards, Lloyd Borrett.
Showhead_phpBB2_1_2.php 2.72K
40 downloads
Posted 29 August 2006 - 02:45 AM
Showhead_phpBB2_1_2.php 2.72K
40 downloads
Posted 16 September 2006 - 06:45 AM
Show_phpBB2_1_4.php 14.08K
87 downloads
Posted 10 November 2006 - 10:05 AM
lloyd_borrett, on Aug 29 2006, 03:43 AM, said:
$timeadjust = isset($diff) ? ($diff * 60 * 60) : $server_offset_time;after added this:
$prefix = isset($pre) ? $pre : "Article";and
$query .= "WHERE (t.topic_title LIKE 'Article - %') AND (f.auth_view = 0) AND (f.auth_read = 0) ";replace by
$query .= "WHERE (t.topic_title LIKE '".$prefix." - %') AND (f.auth_view = 0) AND (f.auth_read = 0) ";
Edited by Mukke, 10 November 2006 - 10:07 AM.
Posted 10 November 2006 - 01:11 PM
Posted 10 November 2006 - 07:45 PM
Edited by Mukke, 10 November 2006 - 07:46 PM.
Posted 25 November 2006 - 11:19 PM
Posted 19 June 2007 - 05:25 AM
Posted 19 June 2007 - 06:57 AM
Posted 30 September 2009 - 10:45 PM
$query = "SELECT * FROM ".$table_prefix."topics WHERE forum_id=".$forumnr." ORDER BY 'topic_type' DESC , 'topic_first_post_id' DESC LIMIT 0 , ". $topiccount ;
$result2 = mysql_query($query);
while($row = mysql_fetch_array($result2)) {
Edited by lloyd_borrett, 30 September 2009 - 10:59 PM.
Posted 01 October 2009 - 12:12 AM
Posted 01 October 2009 - 11:00 PM
Posted 01 October 2009 - 11:50 PM
$query = "SELECT * FROM {$table_prefix}topics WHERE forum_id={$forumnr} ORDER BY topic_type DESC , topic_first_post_id DESC LIMIT 0,{$topiccount}";
-- OR --
$query = "SELECT * FROM {$table_prefix}topics WHERE `forum_id`={$forumnr} ORDER BY `topic_type` DESC , `topic_first_post_id` DESC LIMIT 0,{$topiccount}";
Posted 02 October 2009 - 12:22 AM
Posted 17 August 2010 - 11:13 PM
0 members, 1 guests, 0 anonymous users