I want to style the following mysqli output:
while($row = mysqli_fetch_array($result)) {
$date = $row['name'];
$comment = $row['id'];
$amount = $row['icon'];
echo
"<tr><td style='width: 600px;'>".$date."</td></tr>
<tr><td style='width: 600px;'>".$comment."</td></tr>
<tr><td>".$amount."</td>
</tr>";
}
echo "</table>";
I want to use for the <td style='width: 600px;'>
a css class. If I use the following code, my mysql data disappears. Why?
<tr><td class="links">".$date."</td></tr>