Jump to content

php mysql PDO not showing text


phastphp

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/291584-php-mysql-pdo-not-showing-text/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.