Great widget!
But I need a way to perform a basic SQL query from your widget.
This code here:
1: <?php
2: $querystr = "SELECT * FROM $wpdb->posts";
3:
4: $pageposts = $wpdb->get_results($querystr, OBJECT);
5: ?>
produces this error here:
"Fatal error: Call to a member function get_results() on a non-object in ..path../wp-content/plugins/execphp/execphp.php(24) : eval()'d code on line 4"
how could i make an SQL query work from your widget?