Important notice about the future of Stripcreator (Updated: May 2nd, 2023)

stripcreator forums
Jump to:

Stripcreator » General Discussion » What\\\'s the deal with these things? \\\\\\\\\\\\

Author

Message

bunnerabb
Some bloke.

Member Rated:

Anyhoo?

---
I wanted my half in the middle and I wound up on the edge.

5-19-02 11:57am (new)
quote : comics : pm : info


KajunFirefly
chooby digital (in stereo)

Member Rated:

\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//dunno\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//

---
Dad was flammable

5-19-02 12:07pm (new)
quote : comics : pm : info


kramer_vs_kramer
Stripcreator Newbie

Member Rated:

Okay, when you're putting strings into a database, you have to delimit them with either double or single quotes. So if you want to actually have a double or single quote character, you have to "escape" them with a backslash so that the database knows you want a quote character within the string, and it's not just the end of the string.

Then, when you get the string out of the database, in PHP you'd call the stripslashes function, which removes all the extra backslashes so everything looks normal. Except for some reason, it's not happening here and we're getting all the messages and comics etc with escape characters intact.

5-19-02 1:14pm (new)
quote : comics : pm : info


andydougan
Film critic subordinaire

Member Rated:

I was under the impression that ' was just to delimit single characters, and " was for strings.

5-19-02 1:17pm (new)
quote : comics : pm : info


kramer_vs_kramer
Stripcreator Newbie

Member Rated:

I think it depends on the DB. In Mysql you can get away with using either.

Are you still doing Comp.Sci, by the way, Andy? I seem to remember you had some strips about doing Algoritmic Foundations and the like.

5-19-02 1:21pm (new)
quote : comics : pm : info


NeoVid
Stripcreator Irregular

Member Rated:

I have the real explanation.

The truth by NeoVid
5-19-02
Hey, Brad, what's the glitch that makes these slashes? I've been getting them after every "'" I use.
The new providers got something in their database.
A virus?
Drool.

---
"Only things I approve of should exist." -some guy on the internet

5-19-02 1:25pm (new)
quote : comics : pm : info


andydougan
Film critic subordinaire

Member Rated:

I did it last year. Two years of that hell was more than enough, though. Plus my grades were abominable.

Tell me I wasn't in your class.

Anyone want to play "Six Degrees of Kramer"?

5-19-02 1:29pm (new)
quote : comics : pm : info


kramer_vs_kramer
Stripcreator Newbie

Member Rated:

Did you hang around long enough for Dickman's third year pep talk?

5-19-02 1:32pm (new)
quote : comics : pm : info


andydougan
Film critic subordinaire

Member Rated:

Shudder. Yes. The man who left that lecture theatre is not the same as the one who went in.

I took his advice and "fucked off and died".

5-19-02 1:35pm (new)
quote : comics : pm : info


kramer_vs_kramer
Stripcreator Newbie

Member Rated:

One of the reasons I'm not doing a PhD by kramer_vs_kramer
5-19-02
So, how did you enjoy second year, Andy? Hard, wasn't it?
Um, yeah. A bit. I think I did okay, though.
Okay? Okay isn't good enough. In third year I expect you to work 24 hours every fucking day. That's right, I said "fucking".
I see. So are you suggesting I shouldn't take this course, then?
No, no, go ahead. You're guaranteed to fail, though. And I'll find that really fucking funny. That's right, I said "fucking" again.
On second thoughts, I hear the priesthood calling. I'm off to register for that Divinity degree.

5-19-02 2:04pm (new)
quote : comics : pm : info


JrnymnNate
I fling the shoddy polo stick

Member Rated:

This will make for a great joke in the days to come.

5-19-02 6:42pm (new)
quote : comics : pm : info


JrnymnNate
I fling the shoddy polo stick

Member Rated:

At times like times now, when it\\\\\\\'s "fixed".

jk

5-19-02 9:01pm (new)
quote : comics : pm : info


Brad
Feature Creep

Member Rated:

That's in C, I believe. In PHP one of the differences between the two characters is how much parsing you want PHP to do on the string. Double quotes do more parsing for variables and such, single quotes do less. Also, a nice sloppy use is that people use double quotes when they want to print single quotes and single quotes when they want to print double. For example:

echo 'It's not going to work.'

Will not work.

echo "It's not going to work."

Will work.

echo '"It is not going to work."'

Will work.

echo '"It's not going to work."'

Won't work.

And on and on.

---
www.bradsucks.net

5-20-02 12:28am (new)
quote : comics : pm : info


Brad
Feature Creep

Member Rated:

Although I forgot the semicolon on the end of all of those examples, so none of them will actually work.

---
www.bradsucks.net

5-20-02 12:28am (new)
quote : comics : pm : info


pita
La fille qui a joué avec le feu

Member Rated:

It's OK, we love you anyway

---
“It is only with the heart that one sees rightly; what is essential is invisible to the eye.” - The Little Prince by Antoine de Saint-Exupéry (1945)

5-20-02 7:35am (new)
quote : comics : pm : info

Stripcreator » General Discussion » What\\\'s the deal with these things? \\\\\\\\\\\\


reload page with comics

Jump to:

Post A Reply


stripcreator
Make a comic
Your comics
Log in
Create account
Forums
Help
comics
Random Comic
Comic Contests
Sets
All Comics
Search
featuring
diesel sweeties
jerkcity
exploding dog
goats
ko fight club
penny arcade
chopping block
also
Brad Sucks