Fatal error
TaMeR <[email protected]> Thu, 29 Dec 2005 22:36:01 -0500
| Newsgroups | gmane.comp.php.pear.liveuser |
|---|---|
| Message-ID | <[email protected]> |
Hello
Still new to this and was wondering after hours of testing if someone
could give me a hint on this. Thank you
Dennis Kaplan
** ERROR **
Fatal error: Call to a member function on a non-object in ...
on line: $user_id = $admin->addUser($data, $level);
** INFO **
I am using the admin example 3 and I have added a email field to the
mySQL DB
** CODE **
<?php
if (isset($_POST['submit'])) {
$data = array(
'handle' => $_REQUEST['handle'],
'email' => $_REQUEST['email'],
'passwd' => $_REQUEST['passwd']
);
$level = 1;
$user_id = $admin->addUser($data, $level);
}
?>
<form method="post">
<input type="text" name="handle" size="6" maxlength="80">
<input type="text" name="email" size="10" maxlength="80">
<input type="password" name="passwd" size="6" maxlength="80">
<input name="submit" type="submit" value="Submit">
</form><br />