Re: Beaten!

From: Date: Wed, 16 Apr 2003 14:14:15 +0000
Subject: Re: Beaten!
Groups: php.general 
Request: Send a blank email to php-general+get-144122@lists.php.net to get a copy of this message
try removing the 'period' located just after the "$result" in the line with the error. instead of "$result .= '" try "$result = '" -----Original Message----- From: Chris Knipe <savage@savage.za.org> To: php-general@lists.php.net <php-general@lists.php.net> Date: Wednesday, April 16, 2003 9:30 AM Subject: [PHP] Beaten! >Lo all, > >The code has one again beaten me... Below follows a function inside a >class... > > Function AddMXRecord($mx,$pref,$ttl) { > global $db; > $result = ''; > $i = 0; > while(list($key,$value) = each($mx)) { > if($value != "") { > if(!(checkDomain($value) || checkName($value))) { > $result .= ' > <font color="red">Error: bad MX name ' . >stripslashes($value) . '</font><br>\n'; > $this->error = "Data error"; > } else { > >Line 134 = $result .= ' .... > >I get a parse error on line 134 :( > > >-- >me > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#144122) next »