Gerry, could you give us a bit more code, esp. the while or for loop that surrounds the code you have quoted? Cheers, Ben Gerry wrote: > > Hello everyone: > > I'm trying to build a table with the last row being a check function for > an image, where it checks if the item image exists in the image > directory and either echos "no image" or places a small icon of > something (I guess you could say Ebay style). > > The problem is that the fuction checks for an image matching the first > row item id and then it copies the same result to the remaning item > rows weather they have images or not. I read that I could use the > clearstatcache() to clear the cache and start again but there must be > something wrong with the way I persive the use of this. > > this is the code: > > $fn = "directory/images/$id.gif"; > if (!file_exists($fn)) { > echo "no image"; > } else { > echo"<img src=\"$siteurl/images/camara.gif\">"; > > clearstatcache(); > } > > Could anyone that sees what's wrong with this drop me a line? > > Thanks in advance: > -- > Gerry Figueroa > -------------- - - - - - * > War does not determine who is right, war determine who is left. > |XXXXXXX|-----^|XXXXXX| > > -- > 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]