connect("localhost", "root", "*******"); $db->prepare("insert into wp_posts (post_title, post_content) values ('test post', 'this is just a test post');"); $db->send();//queries the database with the contents of $db->prepare(); $title = $db->row("select * from wp_options where option_id = 2;"); $posts = $db->select("select * from wp_posts"); echo "

".$title['option_value']."

"; foreach($posts as $post) { echo "
" ."
".$post['post_title']."
" ."
".$post['post_content']."
" ."
"; } $db->disconnect(); ?>