RE: [PHP] Undefined offset notices

2003-02-20 Thread Ford, Mike [LSS]
-Original Message- From: Shawn McKenzie [mailto:[EMAIL PROTECTED]] Sent: 20 February 2003 05:55 While debugging my code, that seems to work fine, I see hundreds of these notices, many different ones with different offset numbers same line number. Notice: Undefined offset: 2

Re: [PHP] Undefined offset notices

2003-02-19 Thread Ray Hunter
Try using a for loop instead of a while loop... example: for( $i = 0, $tot = count($tmpparts); $i $tot; $i++ ) { $content = ?.$tmpparts[$i]; eval($content); foreach($command as $name = $cmds) { if($tmpcmds[$i] == $name) { $docmd = $cmds;