Login   Register  
PHP Classes
elePHPant
Icontem

File: reg.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of oran  >  Login Script with PDO  >  reg.php  >  Download  
File: reg.php
Role: Example script
Content type: text/plain
Description: registration sample
Class: Login Script with PDO
Manage user accounts stored in a database with PDO
Author: By
Last change:
Date: 5 years ago
Size: 265 bytes
 

Contents

Class file image Download
<?php
require_once 'sys.class.php';
$reg = new Registration;

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

if(!empty($error['2']))
{
echo 
$error['2'];
}
?>