PHP script just stops for no reason



Hi everybody.
Even if I'm not a professional, I've been coding PHP for some years
now. However, I can not "see" any error in this very simple script and
it does not continues executing after the 'while'.

My script is:

<html>
<head></head>
<body>

<?php

echo "<H1>START...</H1>";

require_once 'variables.php'; /* All the variables*/
require_once '.htinfo.php'; /* db info */

$sql = "SELECT * FROM $table_name ORDER BY 'uid'";
$result = @mysql_query($sql,$connection) or die(mysql_error());

while ($row = mysql_fetch_assoc($result) OR die(mysql_error())) {
foreach($row as $key => $value) {
if ($key != 'uid' && $key != 'nombre') {
$estadisticas[$key][$value]++ ;
} /* closes if */
} /* closes foreach*/
} /*closes while*/

echo "<H1>END...</H1>";
?>
</body>
</html>


I know the array $estadisticas is being updated ok, but, nothing I
place after the while is closed is executed.

To make things even simpler, I just wanted the script to print "END",
and nothing happens.

If I look at the code of the generate page, I get:

<html>
<head></head>
<body>

<H1>START...</H1>


So, not even the remaining html tags are written in the displayed
page.

Any help will be appreciated, I can not just see anything wrong in
this trivial script.

I tested the script on Mandriva Linux and in Windows XP (xampp), same
results.

.



Relevant Pages

  • Re: Text searching all scripts
    ... >> I have a question that doesn't have to do with coding PHP so much as ... >> Or, if that isn't possible, is there some sort of script or program ... Just specify *.php in the filename field. ...
    (alt.php)
  • Cant make this page work
    ... I can't make this script work properly. ... The script at the bottom of the html page ... Does someone have a perl ... sub output_trace_headers { ...
    (comp.lang.javascript)
  • Re: Use with Action "Send Reply" Dont Go
    ... Set Up an HTML Signature ... Go to Tools/Signatures in Entourage, ... "Auto-Reply HTML" or something similar. ... script in the Entourage Script Menu Items folder. ...
    (microsoft.public.mac.office.entourage)
  • Validating to a higher 4.01 standard (long)
    ... The next step is to copy these HTML documents to a new directory (so you do ... onmousedown %Script; #IMPLIED ... datafld CDATA #IMPLIED ... href %URI; #IMPLIED ...
    (alt.html)
  • Posting & Help REQ - Active Directory Reporting Script - pls help add to it
    ... I started writing a script to make a basic HTML report of my active ... ' This code prints out a list of global catalogs for the forest ... Function DisplayDomains (strDomain, strSpaces, dicDomainHierachy) ...
    (microsoft.public.scripting.vbscript)