delete_user_meta from a foreach results page

This is such a convoluted way of doing this. You should separate the delete_user_meta call from the foreach entirely and put type=”hidden” inputs in the form with the rest of the data you need. if(isset($_POST[“Remove”])){ delete_user_meta(get_current_user_id(), ‘pluginlink’, $_POST[“value”]); }//end if Form <form method=”post” enctype=”multipart/form-data” > <button type=”submit” name=”Remove” value=”<?php echo $k1mlsid; ?>” style=”background-color: #fff; padding-left:3px;”><i … Read more

Message notification for user

You need to use wp_ajax action to callback your function. add_action( ‘wp_ajax_update_last_seen_value’, ‘update_last_seen_value’ ); function update_last_seen_value() { global $wpdb; $table=”ej_users”; $id = $_POST[‘id’]; $meta_value = date(‘Y-m-d H:i:s’); update_user_meta( $id , ‘last_seen’, $meta_value ); $data = array( “status” => ‘success’ ); echo json_encode($data); die(); } I have used your code and made correction to render scenario … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)