Re: I 'am not so goooood with php....

From: Date: Wed, 03 Dec 2003 22:28:09 +0000
Subject: Re: I 'am not so goooood with php....
Groups: php.db 
Request: Send a blank email to php-db+get-31874@lists.php.net to get a copy of this message
** Low Priority ** <snip> <?php $tel = 1; $dbrows = mysql_num_rows($rsSubGroup); ?> <?php do { ?> <?php if (($tel % 2) >0) {echo "<tr>"; echo "<td>"; echo $row_rsSubGroup['name']; echo "</td>"; if $tel == $dbrows{ echo "</tr>"; } } else { echo "<td>"; echo $row_rsSubGroup['name']; echo "</td>"; echo "</tr>"; } $tel +=1; ?> <?php } while ($row_rsSubGroup = mysql_fetch_assoc($rsSubGroup)); ?> </snip> I think you want to replace if $tel == $dbrows with if ($tel == $dbrows).

« previous php.db (#31874) next »