I use PHP to download data from a MySQL database. One of the pages I've designed downloads a photograph and description from the database and displays it.
However, some of the photograph descriptions on the MySQL dB have apostrophes in.
i.e.
Phyllis' grave at Nanstallon
Here is a snippet of my code:Esmé photographed in the 1950's
Code: Select all
<a href='$photolink$photo2urn.gif' rel='lightbox[$mainurn]' title='$photo2description' $reltext> 2 </a>Thanks very much in advance.
KD.