title: Error on variable $mysqli->result which I don't access at all yet
body: <p>I got this error:</p>
  
  <p><strong>Catchable fatal error:</strong> Object of class mysqli_result could not be converted to string in <strong>J:\xampp\htdocs\components\bo_testedit.php</strong> on line 50</p>
  
  <p>And this is on <code>bo_testedit.php</code> line 50:</p>
  
  <pre><code>ExecSQL (__FILE__, $mysqli, "DELETE FROM question_assign WHERE id_question = {$id}");
  </code></pre>
  
  <p>And this is on <code>functions_db.php</code>:</p>
  
  <pre><code>function ExecSQL ($scriptparent, $mysqli, $query) {
      $mysqli-&gt;query ($query);
      if ($mysqli-&gt;error != "") { DBErrorLogger ($scriptparent, $mysqli-&gt;error, $query); return $mysqli-&gt;error; }
      return true;
  }
  </code></pre>
  
  <p>And this is also on <code>functions_db.php</code>:</p>
  
  <pre><code>function DBErrorLogger ($functionname, $error, $query = "") {
      $logmessage = "&lt;br&gt;Functions_db.php:\nFunction &lt;strong&gt;{$functionname}&lt;/strong&gt; raised error:&lt;br&gt;\n{$error}";
      if ($query != "") $logmessage = $logmessage . "&lt;br&gt;\nwhile executing this query: \n&lt;strong&gt;{$query}&lt;/strong&gt;";
      Logger ($logmessage);
  }
  </code></pre>
  
  <p>From what I've learned from googling, this error occurs because I want to store object <code>$mysqli-&gt;result</code> into a string type variable. One thing that bothers me here, I didn't access <code>$mysqli-&gt;result</code> in all these codes. Why it returns such error message? I do access it in another lines on <code>bo_testedit.php</code>, but they're seems fine (returning correct result). Is it possible that the line number from this error was incorrect (i.e refer to another line)?</p>
  
  <p>EDIT: Sorry for the long reply. The problem persist of several days despite of anything I did, but then the problem suddenly disappear despite I didn't do anything to it. I still don't know where the problem is, but I surely do hope it will never coming back again. Thank you and sorry.</p>