query('SELECT * FROM my_table'); echo '
'; print_r($query); echo '
'; } public function write() { $db = db_connect(); $query = $db->query('DELETE FROM my_table_insert'); if( $query === true ) { echo '성공'; } else { echo '실패'; } } }