> The code I have got here works Sorry that last message was wrong. The code doesn't work, it misses the last value in the loop. ""Yo Bro"" <[EMAIL PROTECTED]> wrote in message 9at7b4$ruq$[EMAIL PROTECTED]">news:9at7b4$ruq$[EMAIL PROTECTED]... : Thanks for your answer. : : I tried what you suggested and got the result I expected. They all appear : fine. It is only when i loop the array after exploding it, and then : attempting to get it to load an image that it doesn't show the last value. : : The code I have got here works, but the else statement I need to use for : something else. : For this example the feild in the DB is - FULL|DOHC|EFI to make life easy. : : $specs = $myrow[features]; : : echo " echoing specs - $specs"; //This echos FULL|DOHC|EFI : : $features = explode('|',$specs); //What the feild is delimited by '|' : reset ($features); : : print_r ($features); //This prints Array ( [0] => FULL [1] => DOHC [2] => : EFI ) : : while (list(, $feature) = each ($features)) { : : if (file_exists("features/$feature.gif")){ : echo "<img src=\"features/$feature.gif\"><br>"; : } //This displays FILL.gif & DOHC.gif but not EFI.gif : : } //End While : : If the example was FILL|DOHC|EFI|SP : All images would display except SP.gif : this is weird. : : "Philip Olson" <[EMAIL PROTECTED]> wrote in message : Pine.BSF.4.10.10104090640130.46638-100000@localhost">news:Pine.BSF.4.10.10104090640130.46638-100000@localhost... : : What does this do? : : : : > $specs = $myrow['features']; : : : : print $specs; : : : : > $features = explode('|',$specs); //What the feild is delimited by : '|' : : : : print_r($features); : : : : Does it include the missing last value within the $features array? Does : : $specs look okay? : : : : Regards, : : Philip : : : : : : -- : : PHP General Mailing List (http://www.php.net/) : : To unsubscribe, e-mail: [EMAIL PROTECTED] : : For additional commands, e-mail: [EMAIL PROTECTED] : : To contact the list administrators, e-mail: [EMAIL PROTECTED] : : : : : : -- : PHP General Mailing List (http://www.php.net/) : To unsubscribe, e-mail: [EMAIL PROTECTED] : For additional commands, e-mail: [EMAIL PROTECTED] : To contact the list administrators, e-mail: [EMAIL PROTECTED] : -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

