From 6e0115cfb668cb1e94dbefc30b738e5af6eeb6fc Mon Sep 17 00:00:00 2001 From: root Date: Sun, 13 Aug 2006 17:39:31 +0000 Subject: [PATCH] bug #233 --- includes/account.php | 3 ++- pages/account/43.php | 11 ++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/includes/account.php b/includes/account.php index 8584b43..8729a95 100644 --- a/includes/account.php +++ b/includes/account.php @@ -2006,11 +2006,12 @@ { $id = 43; unset($oldid); + $lname = mysql_real_escape_string($_REQUEST['lname']); $day = intval($_REQUEST['day']); $month = intval($_REQUEST['month']); $year = intval($_REQUEST['year']); $userid = intval($_REQUEST['userid']); - $query = "update `users` set `dob`='$year-$month-$day' where `id`='$userid'"; + $query = "update `users` set `lname`='$lname',`dob`='$year-$month-$day' where `id`='$userid'"; mysql_query($query); } diff --git a/pages/account/43.php b/pages/account/43.php index 2ee125e..13ff9d8 100644 --- a/pages/account/43.php +++ b/pages/account/43.php @@ -99,7 +99,11 @@ : - +
+ + + + : @@ -107,10 +111,7 @@ : - - - - +