Problems with ignored apostrophes
Posted: Sat Feb 28, 2009 3:09 am
I'm not a novice in PHP but I'm still going to need an idiots guide to get around a problem I'm experiencing.
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.
Any idea how I can get the apostrophe's to display?
Thanks very much in advance.
KD.
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.