Jump to content

Problema com tabela


Recommended Posts

Boas pessoal,

Eu estou aqui com o problemazito com uma tabela.

O código da tabela é o seguinte:

<table style="width:100%">


$sql = "SELECT id, titulo, Data, Hora FROM noticias WHERE Estado='Activa' ORDER BY Data DESC, Hora";
$executar = mysql_query($sql) [b]or die[/b](mysql_error());

[b]while [/b]($reg = mysql_fetch_array($executar)) {
<td><a href="editar-noticias.php?id=[b]<?php echo [/b]$reg['id']; [b]?>[/b]">[b]<?php echo [/b]$reg['id']; [b]?>[/b]</a></td>
<td>[b]<?php echo [/b]$reg['titulo']; [b]?>[/b]</td>
<td>[b]<?php echo [/b]$reg['Data']; [b]?>[/b]</td>
<td>[b]<?php echo [/b]$reg['Hora']; [b]?>[/b]</td>
[b]<?php [/b]} [b]?>[/b]

A informação não aparece formatada na tabela.

Alguém pode ajudar?

Edited by danielfpaiva
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.