Auth package: What is standard table name
| From: | Michael Meyer \(flexiCAD\) | Date: | Sat, 31 Aug 2002 22:29:07 +0000 |
| Subject: | Auth package: What is standard table name | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-2216@lists.php.net to get a copy of this message | ||
Hi again,
here I hope my last question about the Auth package.
I test the Auth example-code:
-------------------------------------------
<?php
require_once "Auth/Auth.php";
function loginFunction()
{
global $PHP_SELF;
/**
* Change the HTML output so that it fits to your
* application.
*/
echo "Jetzt gehts los./n";
echo "<form method=\"post\" action=\"" . $PHP_SELF .
"\">";
echo "<input type=\"text\" name=\"username\">";
echo "<input type=\"password\" name=\"password\">";
echo "<input type=\"submit\">";
echo "</form>";
}
$dsn = "mysql://flexicad_usr:umor2Kif@localhost/flexicad_db";
$a = new Auth("DB", $dsn, "loginFunction");
$a->start();
if ($a->getAuth()) {
/**
* The output of your site goes here.
*/
}
?>
-------------------------------------------
I think I have to create before I start the script a table in MySQL with the
fields user and password. If not I get this error "DB Error: no such table".
How is the standard table called, what are the field names?
table name?
field name for user?
field name for password?
I don't find it in the documentation?
Thank you in advance,
Michael