diff options
author | Jamie Matthews <[email protected]> | 2010-04-12 01:14:03 +0100 |
---|---|---|
committer | Jamie Matthews <[email protected]> | 2010-04-12 01:14:03 +0100 |
commit | 42c375b7524cdb81cddccdd4715ae79ee94730a1 (patch) | |
tree | 39ffa291d8765c83e8eebc173b6f697af46b0aff /demo.php | |
parent | 634861d67eb26f2cacd90d420cc876287ae3210a (diff) |
Added support for COUNT queries
Diffstat (limited to 'demo.php')
-rw-r--r-- | demo.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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> |