PHP Classes

File: fwphp/glomodul/z_examples/book_video/03steinmetz_2008/ch09_Email/account.php

Recommend this page to a friend!
  Classes of Slavko Srakocic  >  B12 PHP FW  >  fwphp/glomodul/z_examples/book_video/03steinmetz_2008/ch09_Email/account.php  >  Download  
File: fwphp/glomodul/z_examples/book_video/03steinmetz_2008/ch09_Email/account.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change:
Date: 3 months ago
Size: 554 bytes
 

Contents

Class file image Download
<?php

require("accountverify.php");

$login = "joe";
$email_address = "joe@example.com";
$key = "vblcfumipvorodtspycacnhuikqtxbdt";

$db = mysql_connect("localhost", "username", "password");
mysql_select_db("wcphp", $db);

if (
0 && make_verification($login, $email_address, $db)) {
    print
"okay!";
}


if (
activate_account($key, $db)) {
    print
"account activated.";
} else {
    print
"account not activated.";
}

print
"\n";

if (
is_active($login, $db)) {
    print
"account active.";
} else {
    print
"account not active.";
}

print
"\n";

?>

For more information send a message to info at phpclasses dot org.