Please login or register.

Login with username, password and session length
Advanced search  

News:

You need/want an older version of sNews ? Download an older/unsupported version here.

Pages: 1 [2]

Author Topic: [MOD] Displaying X amount from specific category  (Read 6578 times)

Jochum Meester

  • Sr. Member
  • ****
  • Karma: 1
  • Posts: 309
    • JochumMeester.com
[MOD] Displaying X amount from specific category
« Reply #15 on: April 22, 2006, 01:15:20 am »

Quote from: Luka

Code: [Select]
$query = "SELECT * FROM " .s('prefix'). "articles WHERE position = 1 AND published = 1 AND category = 4 ORDER BY id DESC LIMIT $ts, $tl";

can you pick from more than one gallery?? So perhaps: category = 1,2,3,4 or something like that?
Logged
Pages: 1 [2]