summaryrefslogtreecommitdiff
path: root/demo.php
diff options
context:
space:
mode:
authorJamie Matthews <[email protected]>2010-04-12 01:14:03 +0100
committerJamie Matthews <[email protected]>2010-04-12 01:14:03 +0100
commit42c375b7524cdb81cddccdd4715ae79ee94730a1 (patch)
tree39ffa291d8765c83e8eebc173b6f697af46b0aff /demo.php
parent634861d67eb26f2cacd90d420cc876287ae3210a (diff)
Added support for COUNT queries
Diffstat (limited to 'demo.php')
-rw-r--r--demo.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/demo.php b/demo.php
index ba859b1..771f48a 100644
--- a/demo.php
+++ b/demo.php
@@ -48,6 +48,7 @@
}
// Get a list of all contacts from the database
+ $count = ORM::for_table('contact')->count();
$contact_list = ORM::for_table('contact')->find_many();
?>
@@ -60,7 +61,7 @@
<h1>Idiorm Demo</h1>
- <h2>Contact List</h2>
+ <h2>Contact List (<?php echo $count; ?> contacts)</h2>
<ul>
<?php foreach ($contact_list as $contact): ?>
<li>