Still face the same problem from apostrophes with the stripslashes call, as shown below, but if I call addslashes instead, it will at least complete the transaction, though the content comes through pretty munged as you can see.
WITH STRIPSLASHES
WordPress database error: [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ‘t=20 complete the actions, we’d rather see you there anyway an]
INSERT INTO wp_posts (post_author, post_date, post_date_gmt, post_modified, post_modified_gmt, post_content, post_title, post_excerpt, post_category, post_status, post_name, comment_status, ping_status, post_parent) VALUES (‘1’, ‘2005-08-31 14:56:15’, ‘2005-08-31 13:56:15’, ‘2005-08-31 14:56:15’, ‘2005-08-31 13:56:15’, ‘Message
WITH ADDSLASHES (content is added from mail – database call doesn’t fail) but content looks pretty messed up – this is the source text from the posting directly from the admin panel.
Message
@font-face {
font-family: Tahoma;
}
@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 90.0pt 72.0pt =
90.0pt; mso-header-margin: 35.4pt; mso-footer-margin: 35.4pt; =
mso-paper-source: 0; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: “Times New Roman”; =
mso-style-parent: “”; mso-pagination: widow-orphan; =
mso-fareast-font-family: “Times New Roman”
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: “Times New Roman”; =
mso-style-parent: “”; mso-pagination: widow-orphan; =
mso-fareast-font-family: “Times New Roman”
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: “Times New Roman”; =
mso-style-parent: “”; mso-pagination: widow-orphan; =
mso-fareast-font-family: “Times New Roman”
}
A:link {
COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
A:visited {
COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlinkFollowed {
COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.EmailStyle17 {
COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply; =
mso-style-noshow: yes; mso-ansi-font-size: 10.0pt; mso-bidi-font-size: =
10.0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; =
mso-bidi-font-family: Arial
}
SPAN.SpellE {
mso-style-name: “”; mso-spl-e: yes
}
DIV.Section1 {
page: Section1
}
<DIV><SPAN class=3D055575815-31082005><FONT face=3DArial color=3D#0000ff =
size=3D2>Gavin=20
wrote…</FONT></SPAN></DIV>
<DIV><SPAN class=3D055575815-31082005>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2>Hi Cefn</SPAN>, is there any chance that this could be moved =
to a=20
Thursday slot? I’m very interested in this but simply cannot make=20
Wednesdays.</SPAN></FONT></P></SPAN></DIV>
<DIV><SPAN class=3D055575815-31082005><FONT face=3DArial color=3D#0000ff =
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D055575815-31082005><FONT face=3DArial color=3D#0000ff =
size=3D2>I=20
think this is a good discussion to raise with everyone. =
</FONT></SPAN><FONT face=3DArial color=3D#0000ff =
size=3D2>Hopefully we can=20
all agree a change of meeting day for the next time around (in a =
fortnight). Too=20
late for this one I think. The meeting day just stuck at Wednesday for =
reasons=20
of randomness. </FONT></SPAN><SPAN class=3D055575815-31082005><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Been meaning to raise it because Faye couldn’t =
make it on=20
Weds, but they are now leaving the country, so the urgency went=20
away.</FONT></SPAN></DIV>
<DIV><SPAN class=3D055575815-31082005><FONT face=3DArial color=3D#0000ff =
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D055575815-31082005><FONT face=3DArial color=3D#0000ff =
size=3D2>Everyone who’s interested in being involved, can you mail back =
with X=20
against the days you can regularly make, and we’ll see which one=20
sticks.</FONT></SPAN></DIV>
<DIV><SPAN class=3D055575815-31082005><FONT face=3DArial color=3D#0000ff =
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D055575815-31082005><FONT face=3DArial color=3D#0000ff =
size=3D2>Monday</FONT></SPAN></DIV>
<DIV><SPAN class=3D055575815-31082005><FONT face=3DArial color=3D#0000ff =
size=3D2>Tuesday</FONT></SPAN></DIV>
<DIV><SPAN class=3D055575815-31082005><FONT face=3DArial color=3D#0000ff =
size=3D2>Wednesday</FONT></SPAN></DIV>
<DIV><SPAN class=3D055575815-31082005><FONT face=3DArial color=3D#0000ff =
size=3D2>Thursday</FONT></SPAN></DIV>
<DIV><SPAN class=3D055575815-31082005><FONT face=3DArial color=3D#0000ff =
size=3D2>Friday</FONT></SPAN></DIV>
<DIV><SPAN class=3D055575815-31082005><FONT face=3DArial color=3D#0000ff =
size=3D2>Saturday</FONT></SPAN></DIV>
<DIV><SPAN class=3D055575815-31082005><FONT face=3DArial color=3D#0000ff =
size=3D2>Sunday</FONT></SPAN></DIV>
<DIV><SPAN class=3D055575815-31082005><FONT face=3DArial color=3D#0000ff =
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D055575815-31082005><FONT face=3DArial color=3D#0000ff =
size=3D2>Cefn</FONT></SPAN></DIV>
<DIV><SPAN class=3D055575815-31082005><FONT face=3DArial color=3D#0000ff =
size=3D2>https://cefn.com/curiosity/=20
</FONT></SPAN></DIV>