Database, php pdo and html
问题 I have been going over the same scenario several times but It just wont work for me regardless of what I do. What I am trying to do is update my website content straight from my database. I have tables that correspond to my tables in my webpage and I want to simply outut the results. This is how It looks right nw <?php $file = dirname(__FILE__) . "/db.sqlite"; $db = new PDO("sqlite:$file"); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING); ?> <div class="featured"> <h3>Featured</h3>