Location: PHPKode > projects > phpCAMALEO > inc/user_amenddata.inc
<?php
if(!function_exists('user_amenddata'))
{
	#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	# Save user data (UserPnl)
	#
	function user_amenddata($user)
	#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	{
		include($_SESSION[common].'db/Globals.inc');
		include($_SERVER[DOCUMENT_ROOT].$_SESSION[misc][folder].'inc/user_fields.inc');	# 10 Oct 2006
		#
		$sth=db_query("SELECT * FROM $user_table WHERE id='$user'");
		if($sth[1]>0)
		{
			$birth=$_POST[birth_yy][0].'-'.$_POST[birth_mm][0].'-'.$_POST[birth_dd][0];
			$sth=db_query("UPDATE $user_table SET 	email='$_POST[email]', 
													fname='$_POST[fname]', 
													birthday='$birth', 
													conf_email='$_POST[r_confemail]' 
													
													WHERE id='$user' LIMIT 1");
		}
		else
		{
			return(BuildErrorString($error_msg[1024]).'@1');
		}
		return('*OK*');
	}
}
?>
Return current item: phpCAMALEO