Hi im trying to echo single data from a custom table inside my wordpress database.
I found the code to print multiple columns. However I just want to print a single field, so my code looks like this:

global $wpdb;
echo $wpdb->get_results( "SELECT * FROM table.column WHERE id = 1" );

Unfortunately it just prints the word ‘Array’

Read more here: Retrieve data from WordPress custom table using PHP


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: