Why last row deleted when refresh page

I think the reason for the error is you are not creating a form for it, so the last result being used in the foreach is assigning that $print->id to $id. If you did this foreach ( $result as $print ) { ?> <tr> <form method=”POST” action=”{page url}”> <td><?php echo $print->id; ?></td> <td><?php echo $print->names; … Read more

Join Query on WP_USERMETA Table

function get_users_email ($time_zone_cont, $class_group){ // Add Lisa’s user id, 14, in an array. $exclude_list = array( ); $Time_Zone = $time_zone_cont; $user_class_group = $class_group; $args = array( // ‘role’ => ‘Editor’, // ‘exclude’ => $exclude_list, ‘meta_query’ => array( // ‘relation’ => ‘OR’, array( ‘key’ => ‘Time_Zone’, ‘value’ => $Time_Zone, ‘compare’ => ‘=’ ), array( ‘key’ => … Read more