diff options
author | Indieteq <admin@indieteq.com> | 2012-10-17 21:38:56 +0200 |
---|---|---|
committer | Indieteq <admin@indieteq.com> | 2012-10-17 21:38:56 +0200 |
commit | fda5f14b8fefad0a80d01b694ff5621fc0976894 (patch) | |
tree | d8654d8c0e9f8493befef1492b4c4d186a67395d /easyCRUD/index.php | |
parent | 43feb75d2886596d4b358c0830bdd9021c129ef7 (diff) | |
download | php-mysql-pdo-database-class-fda5f14b8fefad0a80d01b694ff5621fc0976894.zip php-mysql-pdo-database-class-fda5f14b8fefad0a80d01b694ff5621fc0976894.tar.gz php-mysql-pdo-database-class-fda5f14b8fefad0a80d01b694ff5621fc0976894.tar.bz2 |
The database files
Diffstat (limited to 'easyCRUD/index.php')
-rw-r--r-- | easyCRUD/index.php | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/easyCRUD/index.php b/easyCRUD/index.php new file mode 100644 index 0000000..23c4e8b --- /dev/null +++ b/easyCRUD/index.php @@ -0,0 +1,39 @@ +<?php + + require("Person.class.php"); + + //$person = new Person(array("Firstname"=>"kona","Age"=>"20","Sex"=>"F")); + //$person = new Person(array("id"=>"67")); + +// Create new person +// $person->Firstname = "Kona"; +// $person->Age = "20"; +// $person->Sex = "F"; +// $creation = $person->Create(); + + //var_dump($creation); + +// Update Person Info +// $person->id = "4"; +// $person->Age = "32"; +// $saved = $person->Save(); + +// var_dump($saved); + +// Find person + //$person->id = "4"; + //$person->Find(); + +// echo $person->Firstname; +// echo $person->Age; + +// Delete person +// $person->id = "17"; + $delete = $person->Delete(); + var_dump($delete); + + // Get all persons + $persons = $person->all(); + + +?>
\ No newline at end of file |