Examples

Data

Here you have a data manipulation example. You can add any extra HTML into the cells (links, images, ...), by going through the data and changing the desired cells.

After getting all the data from the sql query, I had a link to the 3rd column (title) passing the rank into the href

foreach($ct->data as $key => $value){
    $ct->data[$key][2] = '<a href="something.php?id='.$ct->data[$key][0].'">'.$ct->data[$key][2].'</a>';
    // or you may use the tags #COL1#, #COL2#, ... corresponding to the various columns
    $ct->data[$key][2] = '<a href="something.php?id=#COL1#">'.$ct->data[$key][2].'</a>';
}

IMDb Top 250

Search...
RankRatingTitleVotes
19.1The Shawshank Redemption (1994)489048
29.1The Godfather (1972)392126
39.0The Godfather: Part II (1974)232161
48.9Il buono, il brutto, il cattivo. (1966)148969
58.9Pulp Fiction (1994)396749
68.8Schindler's List (1993)262551
78.812 Angry Men (1957)109861
88.8One Flew Over the Cuckoo's Nest (1975)202689
98.8Star Wars: Episode V - The Empire Strikes Back (1980)265556
108.8The Dark Knight (2008)436120
Total: 250Page: 1 of 25