And this solution will work? This is an affiliate sales script. When a member signs up the signup form calls up this code which assigns an id then a seperate code inserts it into the db. If I alter the db structure the code still won't produce the hash id?
I think this is the code that inserts it:
[code=php]
// insert account into db
// $aid = QCore_Sql_DBUni t::createUnique ID('wd_g_accoun ts', 'accountid');
$aid = QCore_Sql_DBUni t::generateID(' seq_wd_g_accoun ts', 1);
$sql = 'insert into wd_g_accounts (accountid, name, description, dateinserted, rstatus) '.
'values '.
'('._q($aid).', '._q($aname).', '._q($adescript ion).','.sqlNow ().','._q($arst atus).')';
$ret = QCore_Sql_DBUni t::execute($sql , __FILE__, __LINE__);
[/code]
I think this is the code that inserts it:
[code=php]
// insert account into db
// $aid = QCore_Sql_DBUni t::createUnique ID('wd_g_accoun ts', 'accountid');
$aid = QCore_Sql_DBUni t::generateID(' seq_wd_g_accoun ts', 1);
$sql = 'insert into wd_g_accounts (accountid, name, description, dateinserted, rstatus) '.
'values '.
'('._q($aid).', '._q($aname).', '._q($adescript ion).','.sqlNow ().','._q($arst atus).')';
$ret = QCore_Sql_DBUni t::execute($sql , __FILE__, __LINE__);
[/code]
Comment