13
It's not working, unfortunately. I get this error:
Fatal error: Call to a member function prefix() on a non-object in /home/grtest/public_html/xoops/modules/profile/register.php on line 156
Notice [PHP]: Undefined variable: grtest_i155xoo in file modules/profile/register.php line 156
Here's the code I put in, so you can see what I did wrong (which is obvious lol) -- oh, BTW, in addition to XOOPS 2.2.3, I'm also running PHP 5.0.5 and MySQL 4.1.13-standard if y'all needed to know that:
//Insert user into PCPIN table
$sql = sprintf("INSERT INTO %s (login, email, password) VALUES (%s, %s, %s)", $grtest_i155xoo->prefix('pcpin_user'), $newuser->getvar('uname'), $newuser->getvar('email'), $newuser->getvar('pass'));
$result = $grtest_i155xoo->query($sql);