sihl Posted February 24, 2010 Share Posted February 24, 2010 Can I get some help fixing this line? The error message I get is "Parse error: syntax error, unexpected '=', expecting ',' or ';' in C:\xampp\xampp\htdocs\vote\functions.php on line 196" echo $value[1]." x <a class=\"q".$value[3]."\" href=\"javascript:;",onmouseover="$WowheadPower.showTooltip(event, '.$value[4].', '.$value[5].')" onmousemove="$WowheadPower.moveTooltip(event)" onmouseout="$WowheadPower.hideTooltip();""\">".$reward_texts[$langs[$set_lang][2]][$key]."</a>"; Thanks Quote Link to comment Share on other sites More sharing options...
laPistola Posted February 24, 2010 Share Posted February 24, 2010 Try <?php echo $value[1]." x <a class=\"q".$value[3]."\" href=\"javascript:;\" onmouseover=\"".$WowheadPower."showTooltip('event', '".$value[4]."', '".$value[5]."') onmousemove=\"".$WowheadPower."moveTooltip(event)\" onmouseout=\"".$WowheadPower."hideTooltip();""\">".$reward_texts[$langs[$set_lang][2]][$key]."</a>"; ?> Quote Link to comment Share on other sites More sharing options...
developerdave Posted February 24, 2010 Share Posted February 24, 2010 echo "{$value[1]} x <a class=\"q{$value[3]}\" href=\"javascript:;\",onmouseover=\"{$WowheadPower}.showTooltip(event, '.$value[4].', '.$value[5].')\" onmousemove=\"$WowheadPower.moveTooltip(event)\" onmouseout=\"{$WowheadPower}.hideTooltip();\"\>{$reward_texts[$langs[$set_lang][2]][$key]}</a>"; Loads of missing \ and I encapsulated the variables a little better Quote Link to comment Share on other sites More sharing options...
sihl Posted February 24, 2010 Author Share Posted February 24, 2010 Now I get the error "Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in C:\xampp\xampp\htdocs\vote\functions.php on line 196" Any ideas? Quote Link to comment Share on other sites More sharing options...
sihl Posted February 24, 2010 Author Share Posted February 24, 2010 Ah thank you dave. That worked Quote Link to comment Share on other sites More sharing options...
developerdave Posted February 24, 2010 Share Posted February 24, 2010 Hehe encapsulation for the win Anytime Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.