Php 调用成员函数executeeval';D

Php 调用成员函数executeeval';D,php,eval,Php,Eval,所以,当我试图运行我的代码时,我遇到了一个非常奇怪的错误。我正在尝试将其放入IPB小部件中 Fatal error: Call to a member function execute() on string in http://home/rmjeng/public_html/redacted.net/forum/plugins/phptxtwidget/widgets/sodPhpWidget.php(106) : eval()'d code on line 12 我的密码 <form

所以,当我试图运行我的代码时,我遇到了一个非常奇怪的错误。我正在尝试将其放入IPB小部件中

Fatal error: Call to a member function execute() on string in http://home/rmjeng/public_html/redacted.net/forum/plugins/phptxtwidget/widgets/sodPhpWidget.php(106) : eval()'d code on line 12
我的密码

<form action="" method="post">
<input type="submit" value = "Check Donor Status" name="SubmitButton"/>
<?php
include("system/Login/Steam.php");
if(isset($_POST['SubmitButton'])){



$uid = $member->steamid;
$sql = new PDO('mysql:host=127.0.0.1;dbname=donation_system;charset=utf8', 'donation', 'redacted');
$sql = "SELECT * FROM  `transactions` WHERE  `uid` = :trans";
$sql->execute(array(':trans' => $uid));
$result = $sql->fetchObject();
if ($result->total > 0)
{
// lets assign the IPB Rank
$dbh2 = new PDO('mysql:host=127.0.0.1;dbname=voxel_ipboard;charset=utf8', 'ipboard_user', 'redacted');

$count = $dbh2->exec("UPDATE  `voxel_ipboard`.`core_members` SET `member_group_id` =  '2' WHERE  `core_members`.`steamid` =:trans;");

echo "assigned donator rank";
header('Location: http://www.voxelservers.net/forum');



}
}
?>