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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

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

Post 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">";
Last edited by neophyte on Tue Jan 18, 2005 1:16 pm, edited 1 time in total.
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post 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.
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

You were right it worked! Like I needed that today! Dreamweaver! :evil:

Thanks for the tip though! Hooray!
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post by magicrobotmonkey »

yea one of the many reasons i quit dreamweaver and moved to jedit! (now, dont start THAT again!)
Post Reply