Page 1 of 1

[solved] -- Unexpected character in input ?!?

Posted: Tue Jan 18, 2005 12:51 pm
by neophyte
Warning: Unexpected character in input: ' in /usr2/home/asdfff/www/moodle/lib/weblib.php on line 1741

Any body have a clue what Unexpected character in input: ' means?

Cause I've never seen it before.

Below is the code I'm using.

Line 1741 is ...

$row_class="generaltablerow1";

Code: Select all

if ($alternate){
                	if( round($i % 2) ){
                 		$row_class="generaltablerow2"; 
                 	}
                 	else{
                 		$row_class="generaltablerow1"; 
					}
					$i++;	                    
                }else{
     			$row_class = "generaltablerow";
     			}
            echo "<tr valign="top" class="$row_class">";

Posted: Tue Jan 18, 2005 12:54 pm
by magicrobotmonkey
Which editor are you using? I would reccomend commenting out the line and re-typing it from scratch ( no copy/paste!) I've seen wierd invisible chars appear with dreamweaver before.

btw - your brackets are kind of tough to read all jumbled around like that.

Posted: Tue Jan 18, 2005 1:15 pm
by neophyte
You were right it worked! Like I needed that today! Dreamweaver! :evil:

Thanks for the tip though! Hooray!

Posted: Tue Jan 18, 2005 2:26 pm
by magicrobotmonkey
yea one of the many reasons i quit dreamweaver and moved to jedit! (now, dont start THAT again!)