Re: [PHP] File_exists function question.

2001-02-16 Thread Ben Peter
Gerry, the following is your problem: you fetch a row from the query result in each iteration: > while ($row = mysql_fetch_array($sql_result)) { and the use the value of $ID. > $fn = "/images/$ID.jpg"; you need to fetch the value of the ID column into the ID variable before. Assuming your selec

Re: [PHP] File_exists function question.

2001-02-15 Thread Gerry
Hello again: Ben Peter wrote: > > Gerry, > > could you give us a bit more code, esp. the while or for loop that > surrounds the code you have quoted? > > Cheers, > Ben Sorry for the confusion, and yes I did mispelled camera in english. Here is more of my sloppy code. I might have an extra }.

Re: [PHP] File_exists function question.

2001-02-15 Thread Ben Peter
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