require("config.php");
$character_check = $db->Execute("SELECT Name FROM Character WHERE Name=? and AccountID=?",array($charactername,$loginid));
$character_check_ = $character_check->numrows();
$online_check = $db->Execute("SELECT ConnectStat FROM MEMB_STAT WHERE memb___id=?",array($loginid));
$row2 = $online_check->fetchrow();
$result = $db->Execute("Select Clevel,Resets,Money,LevelUpPoint,class From Character where Name=?",array($charactername));
$row = $result->fetchrow();
$resetup=$row[1] + (1);
$ddd = $row[1] + 1;
$mmm = $ddd * $muweb['resetmoney'];
$resetmoeny=$row[2]-$mmm;