0
JohnRich

Photo Captions

Recommended Posts

When photos are uploaded to my personal library, the commas which I used in my titles and captions are stripped from the text, leading to improper punctuation.

See the attached image for an example.

What I entered was: "John, Sons & Granddaughters".
What comes out is: "John Sons & Granddaughters".

Share this post


Link to post
Share on other sites
If the database is correctly set up, the only character that could cause a problem is a single quote ('). To escape the single quote, just add another so you're inserting a string containing two single quotes (''). Note: not a double quote (").

Otherwise there's no reason to strip punctuation. Unless of course, the files aren't actually stored in a database, but on a filesystem. But that's probably not the case.

Share this post


Link to post
Share on other sites
Quote

Correct, odd charactors like that in SQL tables can lead to some majorly screwed up tables so a lot of progrms just drop them.



Wouldn't that also cause problems with all of the punctuation in the forum posts? They're also stored in the db, correct?

-
Jim
"Like" - The modern day comma
Good bye, my friends. You are missed.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

0