whats wrong with this code??
getting error:
Code:
<?PHP
$ots = POT::getInstance();
$ots->connect(POT::DB_MYSQL, connection());
$SQL = $ots->getDBHandle();
$pp = $SQL->query('SELECT `premium_points` FROM `accounts` WHERE `id` = ' . $ide->loggedAccountId());
echo $pp;
?>
getting error:
Code:
A PHP Error was encountered
Severity: 4096
Message: Object of class PDOStatement could not be converted to string
Filename: pages/shopoffer.php
Line Number: 6