RE: [PHP] mysql problems [SOLVED]

From: Date: Sat, 14 May 2011 12:35:24 +0000
Subject: RE: [PHP] mysql problems [SOLVED]
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-312788@lists.php.net to get a copy of this message
>[SNIP] > added and else clause. > while ($_parent != 0) > { > if > ($num_rows > 0) > { > > perform some action > } > else > { > $_parent = > "0"; > } > } > > and that solved the > problem. > > Thank you, everyone for your help. > > Curtis A small remark: I think it is good programming practice to place such static if-clauses before the while statement. This prevents a lot of redundant checks and thus saves time. Best regards, Jasper

« previous php.general (#312788) next »