Jump to content
  • 0

Q>About castle on FluxCP


ShogS

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  91
  • Reputation:   8
  • Joined:  03/03/12
  • Last Seen:  

<?php

if (!defined('FLUX_ROOT')) exit;

$title = 'Castles';

$sql = "SELECT castles.castle_id, castles.guild_id, guild.name AS guild_name, guild.emblem_len FROM {$server->charMapDatabase}.guild_castle AS castles ";

$sql .= "LEFT JOIN guild ON guild.guild_id = castles.guild_id ORDER BY castles.castle_id ASC";

$sth = $server->connection->getStatement($sql);

$sth->execute();

$castles = $sth->fetchAll();

$castleNames = Flux::config('CastleNames')->toArray();

?>

HOW can I put some Limits uppon showing the records of the castle owned. I would to show just 5 castle records on every page. How can I implement this? Like sa GUILD Rank 20 limits?

Help Please.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

http://fluxcp.googlecode.com/svn/branches/fluxcp-1.0/config/application.php.

'ResultsPerPage'	   => 20,					   // The number of results to display in a paged set, per page.
...
....
....

'GuildRankingLimit'   => 20,                        //

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  91
  • Reputation:   8
  • Joined:  03/03/12
  • Last Seen:  

http://fluxcp.google...application.php.

'ResultsPerPage'	   => 20,					   // The number of results to display in a paged set, per page.
...
....
....

'GuildRankingLimit'   => 20,						//

Done resolving it tnx to

jupeto

Link to comment
Share on other sites

×
×
  • Create New...