Code
$sql = "INSERT INTO $watchlisttable (
$watchlistcolumn[wlid],
$watchlistcolumn[userid],
$watchlistcolumn[prodid],
$watchlistcolumn[wstatus],
$watchlistcolumn[wdatestamp])
VALUES (
$nextId,
" . pnVarPrepForStore($userid) . ",
" . pnvarPrepForStore($prodid) . ",
'A',
" . $dbconn->DBTimestamp(time()) . ")";
$dbconn->Execute($sql);
$watchlistcolumn[wlid],
$watchlistcolumn[userid],
$watchlistcolumn[prodid],
$watchlistcolumn[wstatus],
$watchlistcolumn[wdatestamp])
VALUES (
$nextId,
" . pnVarPrepForStore($userid) . ",
" . pnvarPrepForStore($prodid) . ",
'A',
" . $dbconn->DBTimestamp(time()) . ")";
$dbconn->Execute($sql);
I am unsure of the 'A' whether it should have a pnVarPrepForStore as well and the best way to insert a time stamp.
Thanks,
Steve
