Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wordpress wpdb

<?php

if ( ! defined('ABSPATH') ) {
    /** Set up WordPress environment */
    require_once( dirname( __FILE__ ) . '/wp-load.php' );
}

global $wpdb;
$results = $wpdb->get_results( "SELECT * FROM table_bame", OBJECT );

print_r($results);
Source by developer.wordpress.org #
 
PREVIOUS NEXT
Tagged: #wordpress #wpdb
ADD COMMENT
Topic
Name
6+6 =