prepare( "INSERT INTO job_postings (employer_id, job_title, job_description, location, salary, requirements,salary_type,job_type,skills_level ) VALUES (?, ?, ?, ?, ?, ?,?,?,?)" ); $stmt->bind_param( "issssssss", // Define parameter types (string, string, string, string, string, string) $employer_id, $job_title, $job_description, $location, $salary, $requirements, $salary_type, $job_type, $skills_level ); $stmt->execute(); echo ""; exit; } catch (Exception $e) { // Return error response if an issue occurs echo json_encode(['status' => 'error', 'message' => $e->getMessage()]); exit; } } ?>