Try
$Notes = addslashes($Notes);

You where almost right :)

/Alexander

----- Original Message -----
From: "Todd Williamsen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 07, 2002 11:32 PM
Subject: [PHP-DB] addslashes()


> I have a "Notes" field where users can add notes.  Now, there will be
times
> when they use quotes "" or maybe even HTML, what is the correct way of
using
> this function?
>
> I have tried:
>
> addslashes($Notes);
>
> and
>
> $Notes addslashes($Notes);
>
> neither work..
>
> I thought I would ask this great newsgroup!
>
> Thanks
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to