Created
June 6, 2014 02:58
-
-
Save Brobin/81c75aaed63ce21f7550 to your computer and use it in GitHub Desktop.
Medoo PHP example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require "medoo.min.php"; | |
$db = new medoo(); | |
$posts = $db->select("posts", array("title", "excerpt", "id"), array("ORDER"=>"id DESC", "LIMIT" => 10)); | |
foreach($posts as &$post) { | |
echo "<h1>".$post["title"]."</h1><br>"; | |
echo "<p>".$post["excerpt"]."</p><br>"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks a lot for this example!!!!