Formatting Table Elements after dataTable() - call
Formatting Table Elements after dataTable() - call
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 "
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 "
This discussion has been closed.
Replies
Allan