If there is one thing I seem to struggle with is when to use single vs double quotes in syntax. In the below line of code, I'm trying to get the appropriate player color into the a log entry.
I have the variables $plr_color and $op_color defined earlier as their color. But the log is only giving me a regular, white text.
Edit: Nevermind. It does work. Quess it helps if I place the variables earlier in the right place, and not inside an if statement.
$gamelog = $timestamp ." - <strong class=\"$plr_color\"> " .$_SESSION['player_name']."</strong> attacked ".$_SESSION['STATES'][$to_country]['name']." from ".$_SESSION['STATES'][$from_country]['name']." and conquered it from <strong class=\"$op_color\"> ".$op_ply_name."</strong><hr />";