Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

Update user_trans table using CustomScript

$
0
0

Topic by Uma Guduru

Hi,

 

Im trying to update the user_trans table , to put in an end_dttm as current system date.

see the code below that i have used. whats the command for system date, that i have to use for $currdate variable.

$currdate = $rows[0][10]->val;   
$acct = $rows[0][9]->val;

$sql_str = sprintf("UPDATE user_trans SET end_dttm = %d WHERE acct_id = '%s'", $currdate, $acct);

 

$rows[0][11]->val = $sql_str;  //Show the sql statement in a row to see if it makes sense.

sql_exec_direct($sql_str);

this is the update statement, the end_dttm value should be current system date. can anybody help

 


UPDATE user_trans SET end_dttm = 1406699749 WHERE acct_id = 'UmaTest GuduruTest'

 

 

 


Viewing all articles
Browse latest Browse all 2504

Trending Articles