HeberPcL
[PowerOT.com.br]
injection.php
Error:
How fix?
PHP:
<?php
if(!defined('BASEPATH')) exit('No direct script access allowed');
//** Connection to the database **//
$ots = POT::getInstance();
$ots->connect(POT::DB_MYSQL, connection());
$SQL = POT::getInstance()->getDBHandle();
$player = $GLOBALS['player'];
$pp = $SQL->query("SELECT `premium_points` FROM `players` WHERE `id` = '".$player->getId()."';");
echo "
<div class=\"bar\" align=\"center\"> <font size=4> Premium Points </font> </div>
".$frags."
";
?>
Error:
PHP:
A PHP Error was encountered
Severity: 4096
Message: Object of class PDOStatement could not be converted to string
Filename: pp/injection.php
Line Number: 14
How fix?