danielfpaiva Posted March 26, 2015 at 01:55 PM Report Share #580253 Posted March 26, 2015 at 01:55 PM (edited) Boas pessoal, Eu estou aqui com o problemazito com uma tabela. O código da tabela é o seguinte: <table style="width:100%"> <tr> <th>ID</th> <th>Titulo</th> <th>Data</th> <th>Hora</th> </tr> [b]<?php[/b] [b]include[/b]('../bd/init.php'); $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)) { [b]?>[/b] <tr> <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> </tr> [b]<?php [/b]} [b]?>[/b] </table> A informação não aparece formatada na tabela. Alguém pode ajudar? Edited March 26, 2015 at 02:01 PM by danielfpaiva Link to comment Share on other sites More sharing options...
HappyHippyHippo Posted March 26, 2015 at 01:59 PM Report Share #580254 Posted March 26, 2015 at 01:59 PM podes explicar com o que pretendes dizer com "não aparece formatada na tabela" ? é porque como podes verificar por ti próprio, o código que apresentas é ilegível ... IRC : sim, é algo que ainda existe >> #p@p Portugol Plus Link to comment Share on other sites More sharing options...
danielfpaiva Posted March 26, 2015 at 02:02 PM Author Report Share #580255 Posted March 26, 2015 at 02:02 PM podes explicar com o que pretendes dizer com "não aparece formatada na tabela" ? é porque como podes verificar por ti próprio, o código que apresentas é ilegível ... Já consegui colocar o código legível. Não aparecer formatada: ex: id nome value 1 e 4 3 r 5 Link to comment Share on other sites More sharing options...
HappyHippyHippo Posted March 26, 2015 at 02:22 PM Report Share #580257 Posted March 26, 2015 at 02:22 PM Não aparecer formatada: ex: id nome value 1 e 4 3 r 5 isto não ajuda nada em entender qual o problema ... IRC : sim, é algo que ainda existe >> #p@p Portugol Plus Link to comment Share on other sites More sharing options...
danielfpaiva Posted March 27, 2015 at 12:08 AM Author Report Share #580289 Posted March 27, 2015 at 12:08 AM (edited) Aqui está imagem do que me está acontecer. Não liguem ao warning que o próximo passo irá ser mudar de mysql para mysqli. Edited March 27, 2015 at 12:10 AM by danielfpaiva Link to comment Share on other sites More sharing options...
HappyHippyHippo Posted March 27, 2015 at 08:12 AM Report Share #580297 Posted March 27, 2015 at 08:12 AM podes fornecer um link para se poder visualizar o html resultante ? IRC : sim, é algo que ainda existe >> #p@p Portugol Plus Link to comment Share on other sites More sharing options...
danielfpaiva Posted March 27, 2015 at 01:37 PM Author Report Share #580329 Posted March 27, 2015 at 01:37 PM Este problema só esta ocorrer no meu servidor local no servidor do site está tudo ok. Por isso vou dar este tópico como resolvido desde já agradeço a tua disponibilidade em ajudares HappyHippyHippo. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now