Improved session management

Improved XHTML wellformedness
pull/1/head
root 16 years ago
parent c0e4bc4298
commit 93f7e85873

@ -16,7 +16,10 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ ?>
<?
$user = $_SESSION['profile'];
$query = "select * from `users` where `id`='".intval($_SESSION['profile']['id'])."' and `users`.`deleted`=0";
$res = mysql_query($query);
$user = mysql_fetch_assoc($res);
$year = intval(substr($user['dob'], 0, 4));
$month = intval(substr($user['dob'], 5, 2));
$day = intval(substr($user['dob'], 8, 2));
@ -63,7 +66,7 @@
{
echo "<option";
if($day == $i)
echo " selected";
echo " selected='selected'";
echo ">$i</option>";
}
?>
@ -74,7 +77,7 @@
{
echo "<option value='$i'";
if($month == $i)
echo " selected";
echo " selected='selected'";
echo ">".ucwords(recode("utf-8..html", strftime("%B", mktime(0,0,0,$i,1,date("Y")))))."</option>";
}
?>

Loading…
Cancel
Save