Location: PHPKode > scripts > Login Script with PDO > login-script-with-pdo/reg.php
<?php
require_once 'sys.class.php';
$reg = new Registration;

$reg->SetUsername("oran");
$reg->SetPassword("dsfsdfsdfg");
$reg->SetEmail("hide@address.com");
$error = $reg->InsertUserToSql(); // see notes at the class

if(!empty($error['2']))
{
echo $error['2'];
}
?>
Return current item: Login Script with PDO