Warning: mysqli_query(): (HY000/1194): Table 'wp_postmeta' is marked as crashed and should be repaired in D:\home\site\wwwroot\wp-includes\wp-db.php on line 2007

WordPress database error: [Table 'wp_postmeta' is marked as crashed and should be repaired]
SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (6) ORDER BY meta_id ASC

Design Management
// $service = get_the_terms( '553', 'services' ); // //print_r($service); // foreach($service as $ser){ // $sev[] = $ser->name; // } // print_r($sev); // $type = ' '; // $service = 'LEED-NC'; // $state = ' '; // if($service == ' ' || $type == ' ' ){ // $field = 'id'; // }else{ // $field = 'name'; // } // $args = array( // 'post_type' => 'projects', // 'meta_key' => 'state', // 'posts_per_page' => '-1', // 'meta_query' => array( // // 'relation' => 'AND', // 'state_clause' => array( // 'key' => 'state', // 'value' => $state, // 'compare' => 'LIKE', // ), // ), // 'tax_query' => array( // 'relation' => 'AND', // array ( // 'taxonomy' => 'types', // 'field' => $field, // 'terms' => $type, // ), // array ( // 'taxonomy' => 'services', // 'field' => $field, // 'terms' => $service, // ) // ), // ); // $query = new WP_Query( $args ); // //print_r($query); // $query = $query->get_posts(); // //print_r($query); // $datas = array(); // foreach ($query as $data) { // $address = get_post_meta($data->ID,'address',true); // $city = get_post_meta($data->ID,'city',true); // $size = get_post_meta($data->ID,'size',true); // $zipcode = get_post_meta($data->ID,'zip_code',true); // $val = getLnt($address.' '.$city); // $lat = $val['lat']; // $lng = $val['lng']; // $image = get_the_post_thumbnail_url($data->ID,'map-image'); // $term = get_the_terms( $data->ID, 'types' ); // $ptype = $term[0]->name; // $sev = array(); // $service = get_the_terms( $data->ID, 'services' ); // //print_r($service); // foreach($service as $ser){ // $sev[$ser->term_id] = $ser->name; // } // if($address != ''){ // $datas[] = array( // 'title' => $data->post_title, // 'image' => $image, // 'link' => $data->guid, // 'address' => $address, // 'city' => $city, // 'size' => $size, // 'zipcode' => $zipcode, // 'lat' => $lat, // 'lng' => $lng, // 'type' => $ptype, // 'service' => $sev // ); // } // } // echo "
";
// 	print_r($datas);
//	echo json_encode($datas, JSON_PRETTY_PRINT);
?>

	

WordPress database error: [Table 'wp_users' is marked as crashed and should be repaired]
SELECT * FROM wp_users WHERE ID = '1' LIMIT 1

Home