Jump to content

Archived

This topic is now archived and is closed to further replies.

aebstract

updating a sql row

Recommended Posts

[code]<?php
if(isset($HTTP_POST_VARS['usern'])) {
$usern = strip_tags($HTTP_POST_VARS['usern']);
$passw = strip_tags($HTTP_POST_VARS['passw']);
setcookie("Username",$usern);
setcookie("Password",$passw);
$lastloginip = $_SERVER['REMOTE_ADDR'];
require('dblogon.php');
$query = "UPDATE userinf SET lastloginip=$lastloginup WHERE username=$usern";
$r = mysql_query ($query);

header("Location: member.php");
exit();
}[/code]


Could someone tell me why it isn't updating lastloginip that matches my username when I log in to this website?
Thanks

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.