Re: trim() white space from record set

From: Date: Wed, 21 Jul 2004 16:41:55 +0000
Subject: Re: trim() white space from record set
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-191342@lists.php.net to get a copy of this message
msa wrote:
I created a search form with multiple search parameters. It returns nothing if there is a space after their text entry or if they hit return in the text area. $coltitle_rsResults = "0"; if (isset($_GET['Title'])) { $_GET['title'] = trim($_GET['title']);
$coltitle_rsResults = (get_magic_quotes_gpc()) ? $_GET['Title'] : addslashes($_GET['Title']); where do i put the trim?
See above. You have to assign the result of trim() to a variable. My crystal ball (it's back off of loan now) says that was the issue. :) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#191342) next »