I have the following piece of code:
<?php
$con=mysqli_connect("host","user","pass","dbname");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$result = mysqli_query($con,"SELECT * FROM Elevi");
echo "<table border='1'>
<tr>
**<th class="right-middle h_user">Nume</th>,**
<th class="right-middle h_done">Teme facute</th>,
<th class="right_middle h_check"><img src="img/h_check.png"></th>,
<th class="right-middle h_undone">Teme nefacute</th>,
<th class="right-middle h_uncheck"><img src="img/h_uncheck.png"></th>,
</tr>";
while($row = mysqli_fetch_array($result))
{
echo "<tr>";
echo "<td class="right-middle user">" . $row['Nume'] . "</td>";
echo "<td>" . $row['Teme facute'] . "</td>";
echo "<td>" . "<img src="img/check.png">" ."</td>";
echo "<td>" . $row['Teme nefacute'] . "</td>";
echo "</tr>";
}
echo "</table>";
mysqli_close($con);
?>
I get the error that i am missing a ','(comma) or ';' (semicolon) on the line with stars around it.Can anyone please help me correct it? As you see, i tried adding a comma but i get the same error.