On Thu, 22 Jul 2004 05:50, Msa wrote: > aaah, simple for you.. > > I have to fit that line into the following: > > $colauthor_rsResults = "0"; > if (isset($_GET['Author'])) { > $colauthor_rsResults = (get_magic_quotes_gpc()) ? $_GET['Author'] : > addslashes($_GET['Author']); > } > > and don't know how to do that.....also, I am using GET.... >
So, $colauthor_rsResults is the field you want trimmed? Just do it after you finish the If. $colauthor_rsResults = "0"; if (isset($_GET['Author'])) { $colauthor_rsResults = (get_magic_quotes_gpc()) ? $_GET['Author'] : addslashes($_GET['Author']); } $colauthor_rsResults =trim($colauthor_rsResults); -- David Robley Never enter a battle of wits unarmed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php