PHP 4.0 Bug #9306: while and multiple conditions
| From: | bjartebe at eunet dot no | Date: | Fri, 16 Feb 2001 20:47:22 +0000 |
| Subject: | PHP 4.0 Bug #9306: while and multiple conditions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-46755@lists.php.net to get a copy of this message | ||
From: bjartebe@eunet.no
Operating system: linux
PHP version: 4.0.1pl2
PHP Bug Type: Unknown/Other Function
Bug description: while and multiple conditions
$i = 0;
$NR_CASES = 5;
while( $row = mysql_fetch_object($queryh, MYSQL_ASSOC) && $i < $NR_CASES ) {
$i++;
?>
<tr align="left">
<td>
<FONT SIZE = "2">
<? echo $i . ": " . $row->head; ?>
</FONT>
</td>
</tr>
<?
}
if i dont include && $i < $NR_CASES, $row->head will print.
if i include it (like now), i wont get anything.
wierd huh ?
im sorry i have no clue about the mods etc for php, im not the one who compiled it here.
--
Edit Bug report at: http://bugs.php.net/?id=9306&edit=1