Re: This should be simple...

From: Date: Fri, 20 Apr 2001 13:59:53 +0000
Subject: Re: This should be simple...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-49563@lists.php.net to get a copy of this message
Boget, Chris wrote: > > http://php.net/htmlentities > > Or, even better, just use addslashes(); > > $query = "INSERT INTO table VALUES = ( " . addslashes( $formField ) . > " )"; > > That way the quotes will remain in the value to display. This isn't the Problem. The string was cut in the input field, not in database. Addslashes should be used before saving to database, though. regards Wagner -- "A conference is a gathering of important people who singly can do nothing, but together can decide that nothing can be done." Fred Allen (1894-1956)

« previous php.general (#49563) next »