title: mysqli bind_param not working
body: <p>I have the following query which working fine.</p>
  
  <pre><code>$stmt = $sql-&gt;prepare("INSERT INTO _dashboard_users(
              Email,
              Password,
              FirstName,
              LastName,
              BusinessName,
              BusinessRole,
              Address,
              City,
              State,
              PostalCode,
              Phone,
              Website) VALUES(?,md5(?),?,?,?,?,?,?,?,?,?,?)");            
          $stmt-&gt;bind_param("ssssssssssis",
              $Email,
              $Password,
              $FirstName,
              $LastName,
              $BusinessName,
              $BusinessRole,
              $Address,
              $City,
              $State,
              $PostalCode,
              $Phone,
              $Website);
          $stmt-&gt;execute();
  </code></pre>
  
  <p>But this one throwing a headache. </p>
  
  <pre><code>$stmt = $sql-&gt;prepare("INSERT INTO scrape(
              Kategorie,
              Hersteller,
              Artikelnummer,
              Bezeichnung,
              EAN,
              UPC,
              Beschreibung,
              Technische_Daten,
              Sprache,
              URL,
              Marktrelease,
              Bild) VALUES(?,?,?,?,?,?,?,?,?,?,?,?)");
          $stmt-&gt;bind_param("ssssssssssss",
              $Kategorie,
              $Hersteller,
              $Artikelnummer,
              $Bezeichnung,
              $EAN,
              $UPC,
              $Beschreibung,
              $Technische_Daten,
              $Sprache,
              $URL,
              $Marktrelease,
              $Bild);
          $stmt-&gt;execute();
  </code></pre>
  
  <p>Fatal error: Call to a member function bind_param() on a non-object~</p>
  
  <p>Can anyone give me a reason why this is happening? I am 100% sure what I am writing, bind_param is a member function of $stmt.</p>
  
  <pre><code>**UPDATE:** I initiliazed $sql like this $sql = new mysqli(DB_HOST,DB_USER,DB_PASS,DB_NAME);
  </code></pre>