Re:setAuthData
| From: | Alan Schildt | Date: | Fri, 24 Jan 2003 18:29:18 +0000 |
| Subject: | Re:setAuthData | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-3452@lists.php.net to get a copy of this message | ||
Hello,
you wrote:
Now I want to extract the testvalue in the test.php: <? require_once "Auth/Auth.php"; $dsn = "mysql://readonly:@localhost/user"; $a = new Auth("DB", $dsn); $a->setShowLogin( false ); $a->start(); if (!($a->getAuth())) { Header("Location: login.php"); exit; } $a->getAuthData($testvalue); print $testvalue; <?>As far as I can see you need to have: print $a->getAuthData($testvalue); instead of what you have in your test.php. Then it will print out your value of 10. HTH Alan S