Código PHP em Tabelas
<?php include 'conexao.php'; $query_sql = mysql_query ("SELECT * FROM especialidades"); while($linha = mysql_fetch_array($query_sql)){ $id = $linha['id']; echo ' <table align="center" width="98%" border="0" cellpadding="4" cellspacing="1" bgcolor="#c4d2da"> <tr> <td id="" style="border-top:none;" class="pergunta"><strong>'.$linha['Esp'].' - '.$linha['esp_nome'].'<font color="#666666" size="2px"><b>(2)</b></font> </strong></td> </tr> <tr>'; $query_sql_2 = mysql_query ("SELECT * FROM materias where id_esp = '$id' "); while($linha_2 = mysql_fetch_array($query_sql_2)){ echo '<td width="85%" bgcolor="#fbfbfb" id="" class=""><a href="#">'.$linha_2['materia'].'</a><font color="#666666" size="1px"><b>(2)</b></font></tr></td>'; } echo ' </table>'; }?>
Não estou conseguindo mostrar os dados em tabelas e nem divs e os botões de editar o nome e excluir segue o exemplo que eu estou tentando fazer, o código php acima está funcional. obrigado pela atenção
/applications/core/interface/imageproxy/imageproxy.php?img=http://www.scriptbrasil.com.br/forum/uploads/monthly_2015_09/EXEMPLOS.thumb.png.1a3a0ce7a294d1b66ffa973f8c308772.png&key=b83cb0632f18babb443b830ad39565e5475d0f4340f8f2934d0e4cba60c8904b" alt="EXEMPLOS.thumb.png.1a3a0ce7a294d1b66ffa973f8c308772.png" />
Ninguém ?
Discussão (0)
Carregando comentários...