...

View Full Version : T_VARIABLE error



masterofollies
06-09-2007, 06:14 PM
I keep getting this error

Parse error: syntax error, unexpected T_VARIABLE in /home/rodgameo/public_html/mugging.php on line 45


Here is the coding for line 44 and line 45.


LINE 44 - $page = "<table width='100%' border='1'><tr><td class=\"title\"><img src=\"images/title_exploring.gif\" alt=\"Exploring\" /></td></tr></table>"

LINE 45 - $page =$page."<p>You are exploring the mighty battle field, and another player jumps out and mugs you! "

Alex!
06-09-2007, 06:43 PM
You need semi-colons at the end of each line

and you can use $page .= instead of $page = $page . ""

Alex

CFMaBiSmAd
06-09-2007, 06:43 PM
Unless you did not include them in the posted code, both of those lines are missing the required semi-colon ; at the end of each statement.

masterofollies
06-10-2007, 02:13 AM
Ok thanks alot!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum