How to display MySQL table data which is stored as an array?

I would like to replace those arrays with real values. Is it possible? I am assuming you want to access and print those two variables which is shown as “Array” in the print out (contact, question_answers_array) Solution as follows – replace your foreach look with below (I didn’t test code but should give you an … Read more

Custom post type and custom taxonomy key lenght & query performance

I’m not sure about the sort of precise figures a performance/algorithm researcher would be looking for. However, in terms of actual performance there is no difference. The WP database can take a beating and I’ve done plugins with dozens and dozens of filters and hooks and queries and they still run very very fast. Furthermore, … Read more

Displaying data from custom table

OK, so maybe the above wasn’t worded very well? I have since made some progress as follows: global $wpdb; $current_user = wp_get_current_user(); $uid = $current_user->ID; $fname = $current_user->first_name . ” ” . $current_user->last_name; $email = $current_user->user_email; $studentTable = $wpdb->prefix.’um_metadata’; $result = $wpdb->get_results ( “SELECT * FROM $studentTable WHERE `user_id` = $uid AND ‘um_key’ = ‘student_number’ … Read more