so,
$xoopsDB->query("INSERT INTO table ... VALUES (".$_POST['username'].", ".$_POST['address'].")");
will work assuming that the $_POST vars are "clean"?
thanks for the info though. very useful for me.
PS: it was not documented in the FAQ...
$xoopsDB->query("INSERT INTO table ... VALUES (".$_POST['username'].", ".$_POST['address'].")");
if (!$member_handler->insertUser($newuser,true)) {
//$adduser_errormsg = _AM_CNRNU;
echo "error inserting new user to xoops_users";
} else {
if (!$member_handler->addUserToGroup('2', $newuser->getVar('uid'))) {
//$adduser_errormsg = _AM_CNRNU2;
echo "error adding uid: ".$newuser->getVar('uid')." to group table";
}
}
m0nty wrote:
it's a slightly modified spotlight module..