Hi,
I'm doing a table that list courses that are in BD, but i'm having some problem, can someone help me?
<?PHP
include 'topo.php';
include 'db_connect.php';
$sql = "SELECT * FROM cursos";
$query = mysql_query($sql,$connect);
?>
<table>
<?PHP
while ($row = mysql_fetch_array($query))
{
?>
<tr>
<td>
<div id="navigation-block">
<ul id="sliding-navigation">
<li class="sliding-element"><a href="prog_curso.php?cod= <?PHP echo $row['cod_curso']; ?> "> <?PHP echo $row['nome_curso']; ?> </a></li>
</ul>
</div>
</td>
<td>
PROGRAMAÇÃO:
<?PHP echo $row['prog_curso']; ?>
</td>
</tr>
<?PHP
;}
?>
</table>
<?PHP
include 'rodape.php';
?>
The error is
Parse error: syntax error, unexpected ';' in C:\wamp\www\site\tabela_cursos.php on line 18
echo ?> <a href="prog_curso.php?cod= <?PHP echo $row['cod_curso']; ?>"> <?PHP echo $row['prog_curso']; ?> </a>