title: "Property access is not allowed yet" warning when using prepared statement
body: <p>I'm trying to make a log in system by using <code>AES_ENCRYPT()</code> to encode my password. But I have some warning from <strong>xdebug</strong> when trying to implement these codes:</p>
  
  <pre><code>...
  $key = 'd0gis=SUPER-cute';
  $sql = "SELECT * FROM `users2` WHERE username = ? AND pwd = AES_ENCRYPT(?, ?)";
  $stmt = $conn-&gt;stmt_init();
  $stmt-&gt;prepare($sql);
  $stmt-&gt;bind_param('sss', $username, $password, $key);
  $stmt-&gt;execute();
  $stmt-&gt;store_result();
  ...
  </code></pre>
  
  <p>When the debugger meets line 8 or <code>$stmt-&gt;prepare($sql);</code>, 6 same warning tables from <strong>xdebug</strong> says:</p>
  
  <blockquote>
    <p>(!) Warning: main(): Property access is not allowed yet in D:\xampp\htdocs\learnphp\includes\authenticate_mysqli.inc.php on line 8</p>
  </blockquote>
  
  <p>The error property in <code>$stmt</code> is empty and I have no real problem, but I just want to know what cause this warning messages to appear.</p>
  
  <p>Googled this warning message but didn't find any solution:</p>
  
  <ol>
  <li><a href="https://stackoverflow.com/questions/4056202/update-query-with-prepared-statements">UPDATE query with prepared statements</a></li>
  <li><a href="http://php.net/manual/en/mysqli-stmt.param-count.php" rel="noreferrer">http://php.net/manual/en/mysqli-stmt.param-count.php</a></li>
  </ol>