Hello
I want to add address ip in the table real_name when it is register user account on my server.
Thanks and please help me.

</style>
<p><br />
</p>
<form action="?action=register" method="post">
<div align="left"><span class="styl1">ID:</span>
<input name="id" type="text" maxlength="12">
<br>
<span class="styl1">Hasło:</span>
<input type="password" name="passwd">
<br>
<span class="styl1">Powtórz hasło:</span>
<input type="password" name="rpt_passwd">
<br>
<span class="styl1">Kod usunięcia:</span>
<input name="social_id" type="text" maxlength="7">
<br>
<input type="reset" value="Wyczyść pola!">
<input type="submit" value="Zarejestruj!">
</div>
</form>
<?php
?php
/************ KONFIGURACJA KOMUNIKATÓW *******************/
$message['success'] = "Konto zostało pomyślnie założone!";
$message['err_acc'] = "Wystąpił błąd podczas zakładania konta!";
$message['err_pass'] = "Poadne hasła nie pasują do siebie!";
$message['exist'] = "Takie konto już istnieje!";
/*********************************************************/
if($_REQUEST['action']=="register")
{
$id = $_REQUEST['id'];
$passwd = $_REQUEST['passwd'];
$rpt_passwd = $_REQUEST['rpt_passwd'];
$social_id = $_REQUEST['social_id'];
$db = mysql_select_db("account");
if($passwd == $rpt_passwd)
{
if(mysql_num_rows(mysql_query("SELECT * FROM account WHERE login='$id'")) > 0)
{
echo '<script type="text/javascript">alert("'.$message['exist'].'");</script>';
}
else
{
$mq = mysql_query("INSERT INTO account SET login = '$id', social_id = '$social_id', password = PASSWORD('$passwd'), cash = '1', silver_expire = '2012-01-01 18:00:00', autoloot_expire = '2012-01-01 18:00:00', money_drop_rate_expire = '2012-01-01 18:00:00', safebox_expire = '2012-01-01 18:00:00'") or die(mysql_error());
if($mq = true)
{
echo '<script type="text/javascript">alert("'.$message['success'].'");</script>';
}
else
{
echo '<script type="text/javascript">alert("'.$message['err_acc'].'");</script>';
}
}
}
else
{
echo '<script type="text/javascript">alert("'.$message['err_pass'].'");</script>';
}
}
?>