plysiu
New Member
hello
i wrote this script but i cant connect to database
could someone help me with this
i will give rep++
-----------
sorry for my english
i wrote this script but i cant connect to database
could someone help me with this
i will give rep++
PHP:
if($action == "")
{
$main_content .= '<form name="zmianarangi" method="post" action="?subtopic=testowy&action=zmianarangi" enctype="text/plain" id="Form1">
<input type="text" id="Editbox1" name="nameofcharacter" value="">
<select name="whatgroup" size="1" id="Combobox1" >
<option selected value="1">Gracz</option>
<option value="2">Tutor</option>
<option value="3">Senior Tutor</option>
<option value="4">Game Master</option>
<option value="5">Community Manager</option>
</select>
<input type="submit" id="Button1" name="Button1" value="Submit">
</form>';
}
if($action == "zmianarangi")
{
???????('UPDATE ``players` SET `group_id` = '.$whatgroup.' where `name` = '.$nameofcharacter.' LIMIT 1 ');
$main_content .= '<center><font size=3><b>Congratulations!</b></font></center>';
}
-----------
sorry for my english