JS Code
<script>
$(document).ready(function(){
var userid = $('#userid').val();
}
</script>
HTML Code
<input type="hidden" name="userid" id="userid" value="8"/>
JS Code
<script>
$(document).ready(function(){
var userid = $('#userid').val();
}
</script>
HTML Code
<input type="hidden" name="userid" id="userid" value="8"/>
Iterative and Evolutionary Development
Current research
demonstrates that iterative methods are associated with higher success and
productivity rates, and lower defect levels.
Timeboxing
A key idea is that iterations are timeboxed, or fixed in
length.
De-scoping: removing tasks or requirements from the
iteration, and including them in a future iteration, rather than slipping the
completion date.
Iterative and Evolutionary Development (also known as iterative and inceremental development; spiral development and evolutionary development)
Build-Feedback-Adapt
Cycles
In complex changing systems, feedback and adaptation are key
ingredients for success:
Benefits of Iterative development
The Unified Process is a popular iterative software development process.
Why a new
methodology?
Process-oriented
methods:
Waterfall (Sequential)
Lifecycle
Why the waterfall
lifecycle fails?
The key false assumption:
dynamic-table.php
action.php
Config.php
Employee.php
<?php require('config.php'); class Employee extends Dbconfig { protected $hostName; protected $userName; protected $password; protected $dbName; private $empTable = 'employment'; private $dbConnect = false; public function __construct(){ if(!$this->dbConnect){ $database = new dbConfig(); $this -> hostName = $database -> serverName; $this -> userName = $database -> userName; $this -> password = $database ->password; $this -> dbName = $database -> dbName; $conn = new mysqli($this->hostName, $this->userName, $this->password, $this->dbName); if($conn->connect_error){ die("Error failed to connect to MySQL: " . $conn->connect_error); } else{ $this->dbConnect = $conn; } } } public function employeeList(){ $sqlQuery = "SELECT * FROM ".$this->empTable." "; $result = mysqli_query($this->dbConnect, $sqlQuery); $employeeData = array(); while( $employee = mysqli_fetch_assoc($result) ) { $empRows = array(); $empRows[] = $employee['post']; $empRows[] = $employee['company']; $empRows[] = $employee['type']; $empRows[] = $employee['fromdate']; $empRows[] = $employee['todate']; $empRows[] = $employee['scale']; $empRows[] = $employee['gross']; $empRows[] = '<button type="button" name="update" id="'.$employee["id"].'" class="btn btn-warning btn-xs update">Update</button>'; $empRows[] = '<button type="button" name="delete" id="'.$employee["id"].'" class="btn btn-danger btn-xs delete" >Delete</button>'; $employeeData[] = $empRows; } $output = array( "draw" => intval($_POST["draw"]), "data" => $employeeData ); echo json_encode($output); } public function getEmployee(){ if($_POST["empId"]) { $sqlQuery = " SELECT * FROM ".$this->empTable." WHERE id = '".$_POST["empId"]."'"; $result = mysqli_query($this->dbConnect, $sqlQuery); $row = mysqli_fetch_array($result, MYSQLI_ASSOC); echo json_encode($row); } } public function updateEmployee(){ if($_POST['empId']) { $updateQuery = "UPDATE ".$this->empTable." SET userid = '".$_POST["userid"]."', post = '".$_POST["post"]."', company = '".$_POST["company"]."', type = '".$_POST["type"]."', fromdate = '".$_POST["fromdate"]."' , todate = '".$_POST["todate"]."' , scale = '".$_POST["scale"]."', gross = '".$_POST["gross"]."' WHERE id ='".$_POST["empId"]."'"; $isUpdated = mysqli_query($this->dbConnect, $updateQuery); } } public function addEmployee(){ $insertQuery = "INSERT INTO ".$this->empTable." (userid, post, company, type, fromdate, todate,scale, gross) VALUES ('".$_POST["userid"]."','".$_POST["post"]."', '".$_POST["company"]."', '".$_POST["type"]."', '".$_POST["fromdate"]."', '".$_POST["todate"]."', '".$_POST["scale"]."', '".$_POST["gross"]."')"; $isUpdated = mysqli_query($this->dbConnect, $insertQuery); } public function deleteEmployee(){ if($_POST["empId"]) { $sqlDelete = " DELETE FROM ".$this->empTable." WHERE id = '".$_POST["empId"]."'"; mysqli_query($this->dbConnect, $sqlDelete); } } } ?>
employee.sql
Inception - Activities
Inception - Exit criteria
ER Model is a popular high-level (conceptual) data model. It is an approach to designing Semantic Conceptual schema of a Database. ER model allows us to describe the data involved in a real-world environment in terms of objects and their relationships, which are widely used in design of database. ER model provides preliminary concepts or idea about the data representation which is later modified to achieve final detailed design.
Important concepts/notions used in ER modeling are-
Entity
It is an object in real-world or some idea or concept which can be distinguished from other objects.
Ex.: person, school, class, department, weather, salary, temperature etc.
Entity has independent existence.
Entity type
Each entity belongs to an Entity type that defines the structure.
Entity Set
It is a Collection of similar objects.
Attribute
Reflects a property of an object or entity. We have following types of attributes.
> Simple attribute
> Composite attribute
> Single valued attribute
> Multi-valued attribute
> Derived attribute
> Stored attribute
Key
Is an Attribute of an entity type whose value can uniquely identify an entity in a set.
Relationship
The association between entities is known as relationship.
Domain of an attribute
The set of possible values is known as domain of an attribute