• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Windows PHP error

Xleniz

New Member
Joined
Jul 6, 2009
Messages
178
Reaction score
3
Location
Sweden
whats wrong with this code??

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
 
whats wrong with this code??

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


PHP:
<?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());
?>

What shop system are you using? IPACC, or the one from Vapus?
 
Back
Top