I have been trying to get it so that my php will check that the website stored in the database is actually there before offering a link.( in a multiple list)
eg. if the site http://www.boohoo.com exists there will be a link to it, if not then it will simply say link not there.
I have tried a variety of options found online (fopen, $url
etc )
and just cant seem to get it to work.
here is the code I am trying to insert it into:
<?php
foreach ($myairports as $myairport)
{
echo'<tr>';
echo'<td><h3>'.$myairport->name.'</h3></td>';
echo'<td>'.$myairport->icao.'</td>';
echo'<td><a href="'.$myairport->chartlink.'" target="_blank">View here</a></td>';
echo'</tr>';
}
?>
</table>
The problem that I am having is that it needs to check for each row of the table.