I was wondering if someone can offer me some help, I am trying a table out of my database and display in a wordpress page. I have looked at wpdb but can’t seem to get it working.
i have put this in the template page
$myrows = $wpdb->get_results( “SELECT * FROM hotels, OBJECT” );
But just getting the word “array” out but no data.
The other night I got out
Catchable fatal error: Object of class stdClass could not be converted to string.
So I am not sure what am doing wrong.
thanks in advanced
- The topic ‘[Resolved] WPDB’ is closed to new replies.