Re: [PHP4BETA] Swallowing print-Statements without errormessages
| From: | Hartmut Holzgraefe | Date: | Thu, 20 Jan 2000 11:55:29 +0000 |
| Subject: | Re: [PHP4BETA] Swallowing print-Statements without errormessages | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-9315@lists.php.net to get a copy of this message | ||
willi@sevenval.de wrote:
> function printout()
> {
> print("<table>");
> while ($m = pac_fetch_array())
> {
> print("<tr>");
> while (list($key,$value) = each($m))
> {
> print("<td>");
> print $key.":".$value."<br>";
> print("</td>");
> }
> print("</tr>");
> }
> pac_apl_close($pac_handle);
> print("</table");
> # ^ -------- Missing '>'
> }
>
> This normaly should give a Huge table from Hash-tables, but
> if the '>' Statement is missing, nothing happens...
>
This is a general HTML problem, not PHP-specific
Netscape wont render a Table until it is closed.
As the End-of-Table tag is misspelled you wont see anything in the
browser-window,
but 'View Source' should show you that the output did arrive at the
browser