lyceum-users AT lists.ibiblio.org
Subject: Lyceum-users mailing list
List archive
[Lyceum-users] again quesiton about update_user_option function in profile_update.php page
- From: "John qin" <feelexit126 AT hotmail.com>
- To: lyceum-users AT lists.ibiblio.org
- Subject: [Lyceum-users] again quesiton about update_user_option function in profile_update.php page
- Date: Sun, 14 Jan 2007 08:51:39 +0000
again quesiton about update_user_option function in profile_update.php page
function update_user_option( $user_id, $option_name, $newvalue, $global = false ) {
global $wpdb;
if ( !$global )
$option_name = $wpdb->prefix . $option_name;
echo $newvalue ; // I add this line to see what value it is.
return update_usermeta( $user_id, $option_name, $newvalue );
}
we use this function to edit user profile. $newvalue is boolean type , value is false, I use echo to print it out.
then next line called update_usermeta, it passed $newvalue in. but when i use echo in
function update_usermeta($user_id, $meta_key, $meta_value )
$meta_value became array, got so confused here. how this data type changes ?
_________________________________________________________________
Type your favorite song. Get a customized station. Try MSN Radio powered by Pandora. http://radio.msn.com/?icid=T002MSN03A07001
- [Lyceum-users] again quesiton about update_user_option function in profile_update.php page, John qin, 01/14/2007
Archive powered by MHonArc 2.6.24.