Re: A question - ($file_exists)

From: Date: Tue, 27 Mar 2001 19:48:24 +0000
Subject: Re: A question - ($file_exists)
Groups: php.db 
Request: Send a blank email to php-db+get-7908@lists.php.net to get a copy of this message
Why isn't this working? <?php $img[] = "$episodeID_a.jpg"; $img[] = "$episodeID_b.jpg"; $img[] = "$episodeID_c.jpg"; for ($x=0; $x<count($img); $x++) { if(!file_exists($img[$x])) { print("<td align=center><img src=\"blank.gif\" width=160 height=120 border=\"1\"></td>"); } else { print("<td align=center><img src=\"$img[$x]\" width=160 height=120 border=\"1\"></td>"); }//end if }//end for loop ?> _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

« previous php.db (#7908) next »