[PHP-DB] Re: Looping advice sought

2002-01-22 Thread George Pitcher
Miles, It's not as bad as some of my queries. Here's my code so far: = = = = = = $i=1; while $i($howmany + 1) { $activity=($activity . $i); $tr_id=($tr_id . $i); if($activity'' and $activity'Delete' and $activity'Submit'){ if($activity=='Decline') $activity='Declined';

Re: [PHP-DB] Re: Looping advice sought

2002-01-22 Thread DL Neil
George, Please check out 6.4.5 UPDATE Syntax! Rather than a complex series of partly nested IF statements, can you rationalise the structure to a SWITCH-CASE? - and with neater (than email) formatting improve readability/comprehension as well? $i=1; while $i($howmany + 1) {