prepare("INSERT INTO users (name, accesslevel, password) VALUES (:name, :accesslevel, :password)"); $sql->execute(array(":name"=>"Admin", ":accesslevel"=>3, ":password"=>$enc)); $id=$db->lastInsertId(); echo "Done!\n\n"; flush(); echo "Credintials:\n>username: ".$id."\n>password: ".$passwd; flush(); exit(); } ?>