Location: PHPKode > projects > Cdub's Logs > cdubs-logs/givnic.php
if(isset($Submitnic)) {
$updatenic = mysql_query("UPDATE cdub_visitors SET
nic = '$nicname'
WHERE id = '$mip'");
$updatepag = mysql_query("UPDATE cdub_pagviews SET
nic = '$nicname'
WHERE ip = '$pip'");
echo("Thanks! Nicname has been added. Click the X to close this window and refresh the logs page");
} else {
?><table width="400" border="0" cellpadding="0" cellspacing="0">
  <tr><form method="post" action="<?=$PHP_SELF?>?ipid1=<?=$ipid?>">
      <td width="400" height="13" valign="top">
        <input type="text" name="nicname">
	<input type="hidden" name="mip" value="<?=$ipid?>">
	<input type="hidden" name="pip" value="<?=$ip?>">
      <input type="submit" name="Submitnic" value="Assign Nicname">
Return current item: Cdub's Logs