Bobafart
10-19-2009, 01:10 PM
I would like to write a php script that selects a large number of images paths/filenames on my server that I have stored in this mySQL table -- if the file doesn't exist on the server then I would like the id for that table item displayed
$sql="SELECT id,imageFilename FROM userTable LIMIT 1000"
$result = mysql_query($sql);
if($result){
while($row=mysql_fetch_array($result)){
if(what condition would I use in here to check to see if the file exists or loads?){
echo '<p>this id '.$row[id].' needs to be fixed as it does not exist</p>';
}
}
thanks
$sql="SELECT id,imageFilename FROM userTable LIMIT 1000"
$result = mysql_query($sql);
if($result){
while($row=mysql_fetch_array($result)){
if(what condition would I use in here to check to see if the file exists or loads?){
echo '<p>this id '.$row[id].' needs to be fixed as it does not exist</p>';
}
}
thanks