teksigns
04-03-2004, 04:03 PM
i have a small script that i wrote.....
the purpose : to allow my moderators to turn on and off
a banner on my main page .......
im using a phrase named livechat ......
and a conditional on the main page checking to see
if livechat = on and if so show banner.
works fine if i change it from the phrase manager .
however if i change the value of livechat with this .
$text="off";
$query = "UPDATE phrase SET text = \"$text\" WHERE varname = 'livechat'";
$result= mysql_query($query) or die ("$admtext[cannotexecutequery]: $query");
i can check with phpMyAdmin and indeed the value changes from on to off....
and i can change back by just changing the value of $text......
however the conditional im using on the main page does not see the change unless i use the phrase manager to do so .....
what is going on ........
the purpose : to allow my moderators to turn on and off
a banner on my main page .......
im using a phrase named livechat ......
and a conditional on the main page checking to see
if livechat = on and if so show banner.
works fine if i change it from the phrase manager .
however if i change the value of livechat with this .
$text="off";
$query = "UPDATE phrase SET text = \"$text\" WHERE varname = 'livechat'";
$result= mysql_query($query) or die ("$admtext[cannotexecutequery]: $query");
i can check with phpMyAdmin and indeed the value changes from on to off....
and i can change back by just changing the value of $text......
however the conditional im using on the main page does not see the change unless i use the phrase manager to do so .....
what is going on ........