php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7074 Contador no busca los dem?s registros
Submitted: 2000-10-06 19:00 UTC Modified: 2001-02-20 07:43 UTC
From: leonela at portalambato dot com Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0.3RC2 OS: WIN32
Private report: No CVE-ID: None
 [2000-10-06 19:00 UTC] leonela at portalambato dot com
<?php
for ($n=0; $n<=10; $n++){
}
$result = mysql_query("SELECT * FROM Empresa where Actividad ='$Actividad' && Revisar ='1'   ORDER BY Empresa LIMIT $n");
if ($row = mysql_fetch_array($result,$n)){ 
echo "<td><p align='center'>Se han encontrado $n registros relacionados con $Actividad...!</p></td>";
do { 
echo 
("<B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Raz?n Social</B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;<TD>$row->Empresa</TD>\n"); 
echo("<br>");
echo  ("<B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Direcci?n</B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;<TD>$row->Direccion</TD>\n"); 
echo("<br>");
echo  ("<B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tel?fono</B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;<TD>$row->Telefono</TD>\n"); 
echo("<br>");
echo 
("<B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Email</B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;<TD><A href=mailto:$row->Email>$row->Email</A></TD>\n"); 
echo("<br>");
echo  ("<B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;P?gina Web</B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;<TD><A href=http://$row->Pagina>$row->Pagina</A></TD>\n");
echo("<br>");
echo("<B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Actividad</B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;<TD>$row->Actividad</TD>\n"); 
echo("<br>");
echo  ("<B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ciudad</B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;<TD>
$row->Ciudad</TD>\n");
echo("<hr>");
}//do
while ($row = mysql_fetch_array($result,$n)); 
}//if
while ( 
list($row_number, $row_array) 
= each($query_result_array){ 
echo("<A HREF=buscar.php3?Actividad=$Actividad>Pr?ximos 10</a></p></td>");
}
?>
<html>
<div align="center"><center>
<table border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td><a href = "idatos.htm">Ingresa tu empresa a nuestro directorio<a></td>
    <td width="100"><p align="center">  <a href="index.html"
    target="_top"><img src="Graficos_aps/portal.gif" border="0"
    width="26" height="30"></a></td>
    <td><a href = "tuempresa.html">Haz click aqu? para modificar tus datos</a></td>
  </tr>
  <tr>
    <td></td>
    <td width="100"><small><p align="center"></small> <small>Principal</small></td>
    <td></td>
  </tr>
</table>
</center></div>
</html>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-09 14:48 UTC] cynic@php.net
what is the problem with the code? please, provide the _shortest possible_ scipt reproducing the erroneous behavior, along with a description of the problem.

also, though there are probably people speaking Spanish among PHP developers, bug reports in English will surely catch more attention, and probably be solved faster than reports written in other languages, so try to use English in future bug reports.

finally, please read http://bugs.php.net/bugs-dos-and-donts.php
 [2001-02-20 07:43 UTC] sniper@php.net
No feedback, considered fixed.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 12:01:31 2024 UTC