aebstract Posted October 20, 2006 Share Posted October 20, 2006 [code]<?phpif(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 Link to comment https://forums.phpfreaks.com/topic/24611-updating-a-sql-row/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.