Originally posted by LadyEnigma
View Post
chatrefrate int(5)
/////link
PHP Code:
echo "<a href=\"chat.php?action=editrefrate\">change refresh rate</a><br/>";
PHP Code:
/////edit
else if($action=="editrefrate")
{
echo "<form action=\"chat.php?action=changerefrate\"
method=\"post\">";
echo "refresh rate: <select name=\"jhundgreat\">";
echo "<option value=\"60\">1 minute</option>";
echo "<option value=\"120\">2 minutes</option>";
echo "<option value=\"180\">3 minutes</option>";
echo "<option value=\"240\">4 minutes</option>";
echo "<option value=\"300\">5 minutes</option>";
echo "<option value=\"360\">6 minutes</option>";
echo "<option value=\"420\">7 minutes</option>";
echo "<option value=\"480\">8 minutes</option>";
echo "<option value=\"540\">9 minutes</option>";
echo "<option value=\"600\">10 minutes</option>";
///////echo "<option value=\"3600\">1 hour</option>";
echo "</select>";
echo "<br/><input type=\"submit\" value=\"change\"><br/>";
echo "</form>";
}
/////proccess
else if($action=="changerefrate")
{
$xdosx = $_POST["jhundgreat"];
$uid = getuid_sid($sid);
mysql_query("UPDATE ibwf_users SET chatrefrate='".$xdosx."' WHERE id='".$uid."'");
echo "chat refresh rate succesfully changed<br/>";
}
PHP Code:
$uid = getuid_sid($sid);
$pinoyworld = mysql_fetch_array(mysql_query("SELECT chatrefrate FROM ibwf_users WHERE id='".$uid."'"));
echo "<timer value=\"$pinoyworld[0]\"/>";
Comment