title: Cant use safemysql to insert or select DB
body: <p>I am using <a href="https://github.com/ionutvmi/master-login-system" rel="nofollow">Ionutvmi's</a> login system, and his way of inserting to DB is <a href="https://github.com/colshrapnel/safemysql" rel="nofollow">colshrapnel's</a> mysql library "safemysql". It seems very good but I cannot insert or select. I have tried with using some examples and also using some of Ionutvmi's code for inserting, but it don't work.</p>
  
  <p>This works (not my code):</p>
  
  <pre><code>if($db-&gt;getRow("SELECT `userid` FROM `".MLS_PREFIX."users` 
  WHERE `email` = ?s", "someuser@gmail.com"))
  echo  "Email already in use !";
  </code></pre>
  
  <p>This doesn't work:</p>
  
  <pre><code>  $user_data = array(
    'name' =&gt; $name,
    'headline' =&gt; $headline,
    'category' =&gt; $category,
    'telephone' =&gt; $telephone,
    'email' =&gt; $email,
    'token' =&gt; $token,
    'price' =&gt; $price,
    );
  
  if(($db-&gt;query("INSERT INTO `".MLS_PREFIX."ad` SET ?u", $user_data)) ) {
      $page-&gt;success = 1;
  } else
      $page-&gt;error = "There was an error with db ! Please try again !";
  }
  </code></pre>
  
  <p>It always display $page->error.</p>
  
  <p>I want to know how I can use the placeholders in "safemysql" In order to INSERT and SELECT and echo out from my database?</p>
  
  <p>It is also very difficult to know what errors I get since this don't work with the query.</p>
  
  <pre><code>echo mysqli_errno($db-&gt;error) . ": " . mysqli_error($db-&gt;error). "\n";
  </code></pre>
  
  <p>Ps: Everything I use is created by "safemysql" and I include init.php from <a href="https://github.com/ionutvmi/master-login-system" rel="nofollow">master-login-system</a> that uses "safemysql"</p>