Ir para conteúdo

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

jrdesing

O mais dificil eu ja fiz

Recommended Posts

fiz este codigo de busca gostaria de saber se muito dificil fazer uma paginaçãoos palavre vem de um form com o nome palavra<? echo "<BR>"; echo "<b>"; echo "     Busca por - ",strtoupper($palavra); echo "</b>"; include("funcoes.php");$db=conecta(); $resultado = mysql_query("select * from imoveis where tipo or bairro or valor or cidade or dormitorios or edificio like '%$palavra%'order by valor ",$db); echo "<p>"; $quantidade=1; $cor=0; while ($campo = mysql_fetch_row($resultado)) { if ($cor==0){ echo "<hr width=450px>"; echo "<table width=450px border=0 cellpadding=0 cellspacing=0 align=center style='font-family:Verdana, Arial, Helvetica, sans-serif; font-size: 7 pt'>"; echo "<tr border=0>"; echo "<th width='120' align='left'><a href=$campo[8] target=_blank><img src=",$campo[8]," width='100' height='75' align='left'>"; echo "<th valign='top' align='left'>","Descrição: ","<BR>","<BR>",($campo[2]); echo "<BR>","<BR>"; echo "<font size=1 color='000000'>"; echo "Edifício: ", $campo[5]; echo "<tr>"; echo "<th align='center'>","R$ ",number_format ($campo[4],2,',',','); echo "<th align='left'>","Bairro: ", ucfirst($campo[6]); echo "<tr>"; echo "<th>"; echo "<th align='left'>","Área Privada: ", ucfirst($campo[3]); echo "</table>"; $cor=1; } else { echo "<hr width=450px>"; echo "<table width=450px border=0 cellpadding=0 cellspacing=0 align=center style='font-family:verdana; font-size: 7 pt'>"; echo "<tr bgcolor=ffffff border=0>"; echo "<th width='120' align='left'><a href=$campo[8] target=_blank><img src=",$campo[8]," width='100' height='75' align='left'>"; echo "<th valign='top' align='left'>","Descrição: ","<BR>","<BR>", strtolower($campo[2]); echo "<BR>","<BR>"; echo "<font size=1 color='000000'>"; echo "Edifício: ", $campo[5]; echo "<tr>"; echo "<th align='center'>","R$ ",number_format ($campo[4],2,',',','); echo "<th align='left'>","Bairro: ", ucfirst($campo[6]); echo "<tr>"; echo "<th>"; echo "<th align='left'>","Área Privada: ", ucfirst($campo[3]); echo "</table>"; $cor=0; } $quantidade+=1; } echo "<center>"; echo "<br>","encontrado(s) ",$quantidade-1," ocorrência(s)"; echo "<BR><BR>"; echo "</table>"; ?>

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.