User login
Navigation
Popular content
Who's online
There are currently 0 users and 8 guests online.
Since you are using MySQL why not use REPLACE?
<?php
$query = "REPLACE INTO user SET last_login = '". . $last_login. "', user_email = '". $user_email. "'";
$result = mysql_query($query) or die(mysql_error());
?>
Also, you might want to try the TIMESTAMP and DATETIME column types because they have options that will AUTO-UPDATE the time to the current time (NOW()).
Submitted by Web Designer++ (not verified) on January 5, 2009 - 7:21pm.
Reply
Like what you see?
Why not add more? C2D is looking for other Christian Web Masters who would like to help write articles for this site. If you have expericance in FLASH, CSS/HTML, PHP/MySQL, PhotoShop/GIMP, Blender, Javascript, or just General Design - our users would love to hear what you have to say.
Contact Us