
10-31-08, 06:18 PM
|
|
New Member
|
|
Join Date: Oct 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
safe pdo insert and update
I'm trying to make a function that I can use safely every time I wanna insert or update anything using PDO
Here is what I have made
And here is how I'm trying to use it
PHP Code:
$username = "blabla";
$email = "blabla@yahoo.com";
$password = "blabla";
$homepage = "http://www.blabla.com";
ExecuteQuery2("insert into users (`verified`,`username`,`email`,`password`,`avatarid`,`homepage`,`lastlogin`,`sentitems`,`passworddate`,`title`,`allowedtosend`,`changePassKey`) values (1, ? , ? , ? ,0, ? ,CURDATE(),0,CURDATE(),'',0,0)",array( $username , $email , $password , $homepage ));
I receive this error when running the codE:
23000Array
What seems to be the issue?
|