-Edward-
04-09-2006, 09:10 AM
If I use the following query:
if(substr($msg) == "/color ") {
$font = str_replace("/color ", "", $msg);
$_SESSION['color'] = strtolower($font);
}
My session color changes to whatever I append to the end of /color for example /color green but only does this once - I was wondering why? I've ried using unset to remove the existing colour so it sets a new one but no joy.
if(substr($msg) == "/color ") {
$font = str_replace("/color ", "", $msg);
$_SESSION['color'] = strtolower($font);
}
My session color changes to whatever I append to the end of /color for example /color green but only does this once - I was wondering why? I've ried using unset to remove the existing colour so it sets a new one but no joy.
