Formatting Table Elements after dataTable() - call

Formatting Table Elements after dataTable() - call

wotan0wotan0 Posts: 1Questions: 0Answers: 0
edited June 2012 in General
Hi there,
I'm new to using DataTables and webprogramming too, so i want to describe my problem. Maybe it's quite trivial.


Before I used the jquery library, I pre-formatted my table elements as following:
(This formatting takes place, while i receive the data from a mySQL-db)

[code]
echo "";
echo "". $row['id'] . ""; //ID
echo "" . $row['title'] . ""; //Title

$j = $row['rank'];
echo '';
if($j < 10){

for($k = 1; $k <= 10; $k++){

if($k < $j) echo '';
else if(($k - $j) <= 0.5) echo '';
else echo '';

}
echo "(" . $row['rank'] . "/10)";
}
echo '';
echo '' . $row['movyear'] . ""; //Year

echo "

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    I don't quite understand I'm afraid - it looks like you already have links being put into your HTML table based on your code above. DataTables will pick those links up in the cell contents and use them.

    Allan
This discussion has been closed.