Example #1
0
 /** import img
  * @param $url
  * @param $id
  * @return \Connector\PDOStatement
  */
 public function import_img($url, $id)
 {
     $result = Connector::prepare("insert into img VALUES ('', ?, ?) ", array($url, $id));
     return $result;
 }
Example #2
0
 /** make the connection at login
  * @return PDOStatement
  */
 public function make_login_connector()
 {
     try {
         $result = Connector::prepare("show databases");
         return $result;
     } catch (\Exception $e) {
         echo $_SESSION['twig']->render("login.html.twig", array("error" => "Identifiant ou mot de passe incorrect"));
         return 0;
     }
 }