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>';
}