Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
tcass84 committed Mar 12, 2011
1 parent 3bb1d14 commit 4ac7f71
Show file tree
Hide file tree
Showing 8 changed files with 186 additions and 7 deletions.
9 changes: 9 additions & 0 deletions classes/.idea/classes.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions classes/.idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions classes/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions classes/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions classes/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

124 changes: 124 additions & 0 deletions classes/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions classes/Admin.php
@@ -0,0 +1,15 @@
<?php

class Admin extends MysqlDB {

public function __construct($host, $username, $password, $db) {
parent::__construct($host, $username, $password, $db);
}

public function get_status($numRows)
{
parent::get('status', $numRows);
}

}

13 changes: 6 additions & 7 deletions index.php
@@ -1,12 +1,13 @@
<?php

require_once('MySqlDb.php');
$Db = new MySqlDb('localhost', 'tcass84', '985300', 'oop-sql');
require_once('classes/MySqlDb.php');
//$Db = new MySqlDb('localhost', 'tcass84', '985300', 'taskerdb');

//$Db->where('id', 6);
$results = $Db->get('posts');
require_once('classes/Admin.php');

$status = new Admin('localhost', 'tcass84', '985300', 'taskerdb');

$status_result = $status->get_status(3);



Expand All @@ -19,8 +20,6 @@
<title>untitled</title>
</head>
<body>
<pre>

</pre>
<?php print_r($status_result) ?>
</body>
</html>

0 comments on commit 4ac7f71

Please sign in to comment.