PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
This may be the problem.... there are html tags and various other sundries in this text. Could that be solving the problem? And, if so, how do I work around this?
Here's some of what actually appears in the textarea:
***
<h3>This is a test. Family Jewels Designs was born of the notion that custom quality jewelry shouldn't be a luxury. Our designs include the finest sterling silver beads and findings, gold filled beads and findings, semiprecious stones, fresh water pearls, swarovski crystals, as well as findings from all over the world. </p><p>
feyd wrote:it's probably better to ask php to escape the quotes entirely with [php_man]mysql_escape_string[/php_man] or its cousins..
Thanks; I didn't know this function exist.
Is this also the way to go when adding binary data to a database?
Before I used addslashes to add an image to the database.
addslashes generally does the same thing. However, using [php_man]mysql_escape_string[/php_man](), or [php_man]mysql_real_escape_string[/php_man]() is normally a better idea (just to be safe)
Also, remember to use [php_man]get_magic_quotes_gpc[/php_man]() or its cousin, so you can [php_man]stripslashes[/php_man]() the variable first