View Full Version : text format in php

03-30-2007, 10:16 AM
www.darkquote.com visit it please and see how the quote #36 is looking

It feels like I\'m looking at life
Through a telescope
Because I\'m so high

How can I get rid of the "\" ?

This is the code of the quote line


And one more thing, the quote #36 should be quote #1, if I went to phpmyadmin and reset it to 1, will it start counting from 1?

03-30-2007, 10:28 AM
stripslashes() (http://php.net/stripslashes)

03-30-2007, 10:33 AM
How do I use it?
It's very complicated for me, I swear.


Is that it?

03-30-2007, 10:34 AM
^^ I don't think that worked!

03-30-2007, 10:47 AM
You put it on the variable you're outputting. Not on the one you're putting into the db.

So whatever variable it is when it's coming out of the db, stick stripslashes around it

03-30-2007, 10:54 AM
You mean like this?

<?php echo"".stripslashes($quote)."" ?>

I don't think it'll work that way!

03-30-2007, 10:55 AM
It worked that way!
That's alot nightfire.