• 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!

Error Show $SQL->query

igorlabanca

New Member
Joined
Aug 15, 2010
Messages
36
Reaction score
3
Script:
PHP:
$castle = $SQL->query("SELECT `nomeguild` FROM `gh` WHERE `nome` = 1");
<div class="panel panel-default">
                   <div class="panel-heading">
                       <h3 class="panel-title"><i class="fa fa-line-chart"></i> Guild from GH</h3>
                   </div>
                   <div class="panel-body">
                       <table class="table table-condensed table-content table-striped">
                           <tbody>
                               <?php echo $castle; ?>
                           </tbody>
                       </table>
                   </div>
               </div>

I can not show the nomeguild table, it shows this Recoverable fatal error: Object of class PDOStatement could not be converted to string in.
 
Last edited:
Do you know anything about this?
Uncaught Error: Call to a member function fetch() on boolean in C:\xampp\htdocs\layouts\metro\layout.php:10 Stack trace:

$getid = $SQL->query('SELECT `id` FROM `gh` WHERE `nome` = '.$castle['nomeguild'])->fetch();
 
Back
Top