theuz Posted April 24, 2012 Report Share Posted April 24, 2012 galera bom dia se alguém pode da uma olhada no code aquiporque não acho meu erro, e não carrega a pageabs<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>Page title</title> <link rel="stylesheet" href="style.css" type="text/css" media="screen"> <link type="text/css" href="menu.css" rel="stylesheet" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="menu.js"></script> <title>Untitled Document</title> <?php include 'conexao.php'; ?> <style type="text/css"> <!-- #container #contents #form1 label { font-weight: bold; } #container #contents #form1 p strong { font-weight: bold; } .botao { } --> </style></head> <body> <div id="container"> <div id="header"><img src="image/nlogo.png" width="576" height="170" /></div> <div id="menu"> <ul class="menu"> <li><a href="#" class="parent"><span>Home</span></a> <div><ul> <li><a href="#" class="parent"><span>Sub Item 1</span></a> <div><ul> <li><a href="#" class="parent"><span>Sub Item 1.1</span></a> <div><ul> <li><a href="#"><span>Sub Item 1.1.1</span></a></li> <li><a href="#"><span>Sub Item 1.1.2</span></a></li> </ul></div> </li> <li><a href="#"><span>Sub Item 1.2</span></a></li> <li><a href="#"><span>Sub Item 1.3</span></a></li> <li><a href="#"><span>Sub Item 1.4</span></a></li> <li><a href="#"><span>Sub Item 1.5</span></a></li> <li><a href="#"><span>Sub Item 1.6</span></a></li> <li><a href="#" class="parent"><span>Sub Item 1.7</span></a> <div><ul> <li><a href="#"><span>Sub Item 1.7.1</span></a></li> <li><a href="#"><span>Sub Item 1.7.2</span></a></li> </ul></div> </li> </ul></div> </li> <li><a href="#"><span>Sub Item 2</span></a></li> <li><a href="#"><span>Sub Item 3</span></a></li> </ul></div> </li> <li><a href="#" class="parent"><span>Product Info</span></a> <div><ul> <li><a href="#" class="parent"><span>Sub Item 1</span></a> <div><ul> <li><a href="#"><span>Sub Item 1.1</span></a></li> <li><a href="#"><span>Sub Item 1.2</span></a></li> </ul></div> </li> <li><a href="#" class="parent"><span>Sub Item 2</span></a> <div><ul> <li><a href="#"><span>Sub Item 2.1</span></a></li> <li><a href="#"><span>Sub Item 2.2</span></a></li> </ul></div> </li> <li><a href="#"><span>Sub Item 3</span></a></li> <li><a href="#"><span>Sub Item 4</span></a></li> <li><a href="#"><span>Sub Item 5</span></a></li> <li><a href="#"><span>Sub Item 6</span></a></li> <li><a href="#"><span>Sub Item 7</span></a></li> </ul></div> </li> <li><a href="#"><span>Help</span></a></li> <li class="last"><a href="#"><span>Contacts</span></a></li> <div id="copyright">Copyright © 2012 <a href="http://apycom.com/">Apycom jQuery Menus</a></div> </ul> </div> <div id="contents"><div align="center" id="busca"> <form action="" enctype="multipart/form-data" name="busca" method="post"> <input type="text" name="buscar"/> <input type="submit" name="enviar" value="Procurar"/> <a href="java script:self.print()">IMPRIMIR</a> </form> <table width="200" border="1"> <tr> <td>Id</td> <td>Indicação</td> <td>N.Numero</td> <td>Ementa</td> <td>Endereço</td> <td>Bairro</td> <td>Funcionario</td> <td>Solicitante</td> <td>Telefone</td> <td>Data</td> <td>Status</td> </tr> <?php $buscar_x = $_POST['buscar']; $sql_listar_indicacao = mysql_query("SELECT * FROM indicacao WHERE tf_indicacao LIKE '%$buscar_x%' OR tf_nossonumero LIKE '%$buscar_x%' OR tf_ementa LIKE '%$buscar_x%' OR tf_endereco LIKE '%$buscar_x%' OR tf_bairro LIKE '%$buscar_x%' OR tf_funcionario LIKE '%$buscar_x%' OR tf_solicitante LIKE '%$buscar_x%' OR tf_telefone LIKE '%$buscar_x%' OR tf_data LIKE '%$buscar_x%'") or die(mysql_error()); $total_registros = mysql_num_rows($sql_listar_indicacao); while ($resultado_indicacao = mysql_fetch_array($sql_listar_indicacao)){ $id_indicacao = $resultado_indicacao["ID"]; $indicacao_indicacao = $resultado_indicacao["tf_indicacao"]; $nossonumero_indicacao = $resultado_indicacao["tf_nossonumero"]; $ementa_indicacao = $resultado_indicacao["tf_ementa"]; $endereco_indicacao = $resultado_indicacao["tf_endereco"]; $bairro_indicacao = $resultado_indicacao["tf_bairro"]; $funcionario_indicacao = $resultado_indicacao["tf_funcionario"]; $solicitante_indicacao = $resultado_indicacao["tf_solicitante"]; $telefone_indicacao = $resultado_indicacao["tf_telefone"]; $data_indicacao = $resultado_indicacao["tf_data"]; ?> <tr> <td><?php echo $id_indicacao ?></td> <td><?php echo $indicacao_indicacao ?></td> <td><?php echo $nossonumero_indicacao ?></td> <td><?php echo $ementa_indicacao ?></td> <td><?php echo $endereco_indicacao ?></td> <td><?php echo $bairro_indicacao ?></td> <td><?php echo $funcionario_indicacao ?></td> <td><?php echo $solicitante_indicacao ?></td> <td><?php echo $telefone_indicacao ?></td> <td><?php echo $data_indicacao ?></td> <td><?php echo $data_indicacao ?></td> </tr> <tr> <td>Total de Registros Encontrados</td> <td><?php echo $total_registros?></td> </tr> </table> </div> <div id="footer"></div> </div> </body> </html> Quote Link to comment Share on other sites More sharing options...
0 JaguA Posted April 24, 2012 Report Share Posted April 24, 2012 comente tudo o que estiver na tag <php ?>e deixa o html puro ve se carrega. Quote Link to comment Share on other sites More sharing options...
0 Ricardo Portolan Posted April 25, 2012 Report Share Posted April 25, 2012 Bom dia.Faltou fechar a chave ( } ) do while.Abraço. Quote Link to comment Share on other sites More sharing options...
Question
theuz
galera bom dia se alguém pode da uma olhada no code aqui
porque não acho meu erro, e não carrega a page
abs
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.