Re: Array Transversing

From: Date: Thu, 31 Aug 2000 22:11:07 +0000
Subject: Re: Array Transversing
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-2539@lists.php.net to get a copy of this message
Stacy Hunter wrote: > > I have the results of a distinct select that gives me an array comprised > of one of each field type under a given field heading. I would like to be > able transverse the array with an if statemetn that if given a result > variable will give me the next in the array. For example $variable = > "one". $ARR = queryresult[zero,one,two,three]. If $variable = "one" give > me the next in the array (two). > > Any thoughts? > Maybe you can include some example code/table structure? Sounds like your making things harder than they need to be - assuming I understand what you're asking, and I doubt I do. Jason Murray Developer jWeb New Media Design (636) 928 61 32

« previous php.db (#2539) next »