problems, custum wrap (class) around PDO, doesn't work

Posted by Knarf on Stack Overflow See other posts from Stack Overflow or by Knarf
Published on 2010-06-07T18:34:58Z Indexed on 2010/06/07 18:42 UTC
Read the original article Hit count: 234

Filed under:
|
DB::construct();
$STH = DB::prepare('INSERT INTO users (username, password, email, activationkey) VALUES (?, UNHEX(?), ?, ?)');
var_dump($STH);
$result = $STH->execute(array('test', 'nils', '[email protected]', '227a038fe9c81515b514cb152188e95c'));

echo "working? <br />";
if($result == false) echo 'noooo...';

It outputs and doesn't put anything in the database. Works with a similare code with DPO just without my DB class. But I doesn't get any errors. Anyone have an idea what the problem could be?

object(PDOStatement)#2 (1) { ["queryString"]=> string(87) "INSERT INTO users (username, password, email, activationkey) VALUES (?, UNHEX(?), ?, ?)" }
working? <br /> noooo...

© Stack Overflow or respective owner

Related posts about php

Related posts about pdo