Hello All -
I'm pulling various values from a table.
From there I'm processing the result through a while loop.
what I'm trying to do is to look AHEAD at a particular value in the NEXT row set but I'm having a very difficult time trying to get this done.
Shown below is pseudo code to better illustrate what I'm trying to accomplish.
$ignore = NULL;
while($d = mysql_fetch_assoc($r))
{
if($d['fld_nav_index'] == $ignore) continue;
$test1 = $d['fld_nav_index'];
$test2 = next($d['fld_nav_index']); // value in the NEXT row
if($test2 == '02') {
echo $test1;
$ignore = $test2;
}
}
Is there a simple solution to this problem?
All help greatly appreciated.