Thursday, May 10, 2012

Update data in wordpress table

$wpdb->update('wp_profile_visitor', array('count' => $countvisit, 'visitor_name' => $final_current_user->display_name), array('profile_id' =>$final_curauth->ID, 'visitor_id' =>$final_current_user->ID ));

wp_profile_visitor is table name.
array('count' => $countvisit, 'visitor_name' => $final_current_user->display_name) is updated data and
array('profile_id' =>$final_curauth->ID, 'visitor_id' =>$final_current_user->ID ) where condition.
 



No comments:

Post a Comment