Categories > TinyButStrong general >

problem with MergeBlock (limiting number of items)

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: powerpop
Date: 2004-07-27
Time: 23:48

problem with MergeBlock (limiting number of items)

i tried to do the following to display only 15 thumbnails:

$sql = "SELECT * FROM ping_p2w WHERE wid=".$wid." AND relationship='friend' ORDER BY rand(".time()." * ".time().")";

$tbs->MergeBlock('members',$db->conn,$sql,1,15);

only one photograph gets displayed - i have used this SELECT elsewhere so i believe the problem is in my MergeBlock call ??
By: Skrol29
Date: 2004-07-28
Time: 00:04

Re: problem with MergeBlock (limiting number of items)

For page #1:
  $tbs->MergeBlock('members',$db->conn,$sql,15,1);