示例#1
0
$db = new DB_Functions();
if (isset($_POST['plant'])) {
    // get tag
    $biological_name = $_POST['biological_name'];
    $common_name = $_POST['common_name'];
    $land_size = $_POST['land_size_required'];
    $life_time = $_POST['life_time'];
    $irrigation_period = $_POST['irrigation_period'];
    $average_plant_size = $_POST['average_plant_size'];
    $suitable_season = $_POST['suitable_season'];
    $sunlight_hours = $_POST['sunlight_hours'];
    $average_temperature = $_POST['average_temperature'];
    $humidity = $_POST['humdity'];
    $land_id = $_POST['land_id'];
    $plant_rate = $_POST['plant_rate'];
    $status = $db->insert_plant($biological_name, $common_name, $land_size, $life_time, $irrigation_period, $average_plant_size, $suitable_season, $sunlight_hours, $average_temperature, $humidity, $land_id, $plant_rate);
    // if($status!=-1){
    //   echo 'Inserted Successfully';
    // }else{
    //    echo 'Error in insertion';
    // }
}
?>
<html>
<head>
	<title>Plant Nursery</title>
	<link rel="stylesheet" type="text/css" href="css/reset.css" />
	<link rel="stylesheet" type="text/css" href="css/bootstrap.css" />
	<link rel="stylesheet" type="text/css" href="css/animate.css" />
	<link rel="stylesheet" type="text/css" href="css/custom.css" />
	<link rel="stylesheet" type="text/css" href="css/jquery.timepicker.css" />