View Full Version : code mod problem


teksigns
3rd April 2004, 07: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 ........

Floris
3rd April 2004, 10:22 PM
I have too little info to see what might be wrong.