This will work.
It is fine for most links, except ones that are redirected.
HalfaBee
<?
$result = mysql_query( 'select * from tablename ' ) or die( mysql_error() );
while( ($row=mysql_fetch_assoc( $result ))!== FALSE )
{
$link = fopen( $row['link'],'r' );
if( $link === FALSE )
echo "bad link {$row['link']}<BR>";
else {
echo "Good Link {$row['link']}<BR>";
fclose( $link );
}
}
?>