Posts: 395
Threads: 43
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Aug 2011
Reputation:
0
$query3 = sprintf("UPDATE %s.bg_user SET cash = cash + ".$S_vcash_cash." WHERE user_code = '".$_SESSION['UserID']."' ", $CMS_LCAuth);
$dbh = $lc_cms_con->prepare( $query3 );
$dbh->execute();
echo '<meta http-equiv="refresh" content="0; url='.$S_vcash_link4.'" />';
is what im trying to do but the code doesn't work. it either
A.doesn't find the userID and then go into bg_user
B.Finds the userID but doesn't go into bg_user to add cash.
The old code was sending it to a_olt from the "Site" database im converting it to send to accounts instead of market cash.
What am i missing i was told to use another code but it didnt work at all..
Posts: 473
Threads: 50
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Dec 2011
Reputation:
0
you need to use last LC-CMS 3.8.2 have that function
Posts: 395
Threads: 43
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Aug 2011
Reputation:
0
It's reading the t_vote_history for the website just fine but it wont update it or insert with the vote4us.php. it shows the votes just fine on the sidebar but it never updates or inserts when someone/anyone makes a vote.
PS. I'm using the code from max's 3.8.2 website for the vote4us.php
NOTE:
it worked fine for a few days then all of a sudden stopped working.
Posts: 395
Threads: 43
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Aug 2011
Reputation:
0
Fixed it. the person had a bad vote4us.tpl thanks for everyone helping