phastphp Posted October 12, 2014 Share Posted October 12, 2014 I have just started updating my wordpress website using PDO. For some unknown reason, grabbing text from mysql and using 'echo' to display the data does not work. Here is my code: global $wpdb; $symbol = get_query_var('name'); $result = $wpdb->get_row("SELECT about FROM wp_data WHERE symbol = '{$symbol}'"); echo $result->about; I used a foreach loop and echoed all data and everything shows up except for the "TEXT" field (I only have one TEXT column). Please help! Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/291584-php-mysql-pdo-not-showing-text/ Share on other sites More sharing options...
ginerjm Posted October 12, 2014 Share Posted October 12, 2014 Why not post in the wordpress section? The functions you are using mean nothing to those who don't use it. Quote Link to comment https://forums.phpfreaks.com/topic/291584-php-mysql-pdo-not-showing-text/#findComment-1493395 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.