aqui esta
Código PHP:
<?php if (!$_POST['identificarse']) {
$query = mysql_query("SELECT * FROM Recordar WHERE IP = '" . $_SERVER['REMOTE_ADDR'] . "'");
if (mysql_num_rows($query)) { //error de la linea 100
while ($row = mysql_fetch_array($query)) {
$servidor = $row['Servidor'];
$contraseña = $row['Clave'];
$checked = 1;
}
}
mysql_close();
} else {
$servidor = htmlentities($_POST['servidor']);
$contraseña = htmlentities($_POST['contraseña']);
if ($_POST['recordar'] == "ok") $checked = 1;
} ?>
<span class="campo">SERVIDOR:</span><br />
<input id="servidor" name="servidor" type="text" size="20" class="campo_reposo" value="<?= $servidor ?>" onfocus="this.className='campo_sobre'" onblur="this.className='campo_reposo'" />
<br /><br />
<span class="campo">CONTRASEÑA:</span><br />
<input id="contraseña" name="contraseña" type="password" size="20" class="campo_reposo" value="<?= $contraseña ?>" onfocus="this.className='campo_sobre'" onblur="this.className='campo_reposo'" />
<br /><br />
<input name="recordar" style="line-height: 11px; vertical-align: bottom;" type="checkbox" value="ok"<?php if ($checked) { ?>checked="checked"<?php } ?> /> <span class="recordar">Recordar contraseña</span>
<br /><br />
<input name="identificarse" type="submit" value="IDENTIFICARSE" class="boton_reposo_cont" onmouseover="this.className='boton_sobre_cont'" onmouseout="this.className='boton_reposo_cont'" />
<input name="volver" type="submit" value="VOLVER AL SITIO" class="boton_reposo_cont" onmouseover="this.className='boton_sobre_cont'" onmouseout="this.className='boton_reposo_cont'" />
</form>
</div>
</body>
</html>
<?php mysql_close(); ?>