0% found this document useful (0 votes)
5 views5 pages

Ground Floor

about the Ground floor

Uploaded by

2101105798
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views5 pages

Ground Floor

about the Ground floor

Uploaded by

2101105798
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Ground floor:

Reception area: 10 ft x 12 ft (120 sq ft)

Meeting room: 10 ft x 15 ft (150 sq ft)

In-house programmer workstations: 15 ft x 20 ft (300 sq ft)

Restroom: 5 ft x 8 ft (40 sq ft)

Pantry area: 10 ft x 8 ft (80 sq ft)

Server room: 10 ft x 10 ft (100 sq ft)

Total ground floor area: 790 sq ft

Second floor:

Work-at-home programmer workstations: 12 ft x 20 ft (240 sq ft)

Meeting room: 10 ft x 12 ft (120 sq ft)

Restroom: 5 ft x 8 ft (40 sq ft)

Storage room: 10 ft x 8 ft (80 sq ft)

Manager's office: 10 ft x 15 ft (150 sq ft)

Total second floor area: 630 sq ft

Overall, the total size of the all-concrete, 2-story building is approximately 1,420 sq ft. However, please
note that these dimensions are just suggestions and can be adjusted based on your specific
requirements and constraints.

--

Ground floor:

Reception area

Meeting room (can accommodate up to 10 people)

In-house programmer workstations (can accommodate 15 people)


Restroom

Pantry area

Server room

Second floor:

Work-at-home programmer workstations (can accommodate 12 people)

Meeting room (can accommodate up to 8 people)

Restroom

Storage room

Manager's office

Building specifications:

All-concrete construction

Two-story building

Modern and minimalist design

Glass windows for natural lighting and ventilation

Centralized air conditioning system

High-speed internet connectivity

Power backup system

Ample parking space for employees and visitors

<?php

// Set database credentials


$dbHost = 'localhost';
$dbUsername = 'your_username';
$dbPassword = 'your_password';
$dbName = 'your_database_name';

// Connect to the database


$conn = new mysqli($dbHost, $dbUsername, $dbPassword, $dbName);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}

// Define CRUD operations

// Create
function createFarmer($lastName, $firstName, $middleName, $farmType,
$membershipDate, $password) {
global $conn;

// Hash the password


$hashedPassword = password_hash($password, PASSWORD_DEFAULT);

// Prepare the insert statement


$stmt = $conn->prepare("INSERT INTO farmers (last_name, first_name,
middle_name, farm_type, membership_date, password) VALUES (?, ?, ?, ?, ?,
?)");

// Bind parameters
$stmt->bind_param("ssssss", $lastName, $firstName, $middleName,
$farmType, $membershipDate, $hashedPassword);

// Execute the statement


if ($stmt->execute()) {
return $conn->insert_id; // return the ID of the new record
} else {
return false; // return false if insert failed
}
}

// Read
function getFarmers() {
global $conn;

// Prepare the select statement


$stmt = $conn->prepare("SELECT * FROM farmers");

// Execute the statement


$stmt->execute();

// Get the result set


$result = $stmt->get_result();
// Fetch all rows as associative array
$farmers = $result->fetch_all(MYSQLI_ASSOC);

// Return the result


return $farmers;
}

// Update
function updateFarmer($id, $lastName, $firstName, $middleName, $farmType,
$membershipDate, $password) {
global $conn;

// Hash the password


$hashedPassword = password_hash($password, PASSWORD_DEFAULT);

// Prepare the update statement


$stmt = $conn->prepare("UPDATE farmers SET last_name = ?, first_name
= ?, middle_name = ?, farm_type = ?, membership_date = ?, password = ?
WHERE id = ?");

// Bind parameters
$stmt->bind_param("ssssssi", $lastName, $firstName, $middleName,
$farmType, $membershipDate, $hashedPassword, $id);

// Execute the statement


if ($stmt->execute()) {
return true;
} else {
return false;
}
}

// Delete
function deleteFarmer($id) {
global $conn;

// Prepare the delete statement


$stmt = $conn->prepare("DELETE FROM farmers WHERE id = ?");

// Bind parameters
$stmt->bind_param("i", $id);

// Execute the statement


if ($stmt->execute()) {
return true;
} else {
return false;
}
}

?>

You might also like