Can you perform an SQL query from this?
But I need a way to perform a basic SQL query from your widget.
This code here:
2: $querystr = “SELECT * FROM $wpdb->posts”;
4: $pageposts = $wpdb->get_results($querystr, OBJECT);
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?
- The topic ‘Can you perform an SQL query from this?’ is closed to new replies.