I made some modifications to the code and I do not get ant error messages,
but the database is still not updated. Here's the code:
<?php
$hostname_connPENPALS = "localhost";
$database_connPENPALS = "phpenpals";
$username_connPENPALS = "username";
$password_connPENPALS = "password";
// SET DATE and SET USER ID SESSION VARAIBLE
$lastaccessdate = gmdate("M d, Y");
$myuserid = $HTTP_SESSION_VARS['svUserID'];
mysql_select_db($database_connPENPALS, $connPENPALS);
$myquery = "UPDATE penpals SET lastaccess='$lastaccessdate' WHERE
ID='$myuserid'";
$result = mysql_query($myquery, $connPENPALS);
echo mysql_error();
// header("Location: successfullogin.php");
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php