LCKB
Help with changing vote4us.php - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Website Scripting & Security (https://lckb.dev/forum/forumdisplay.php?fid=197)
+---- Forum: LastChaos - CMS (https://lckb.dev/forum/forumdisplay.php?fid=182)
+----- Forum: ToXiC Support (https://lckb.dev/forum/forumdisplay.php?fid=206)
+----- Thread: Help with changing vote4us.php (/showthread.php?tid=2886)



- pwesty - 04-17-2015


$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..




- SibaN - 04-17-2015

you need to use last  LC-CMS 3.8.2  have that function




- pwesty - 04-18-2015


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.




- pwesty - 04-19-2015

Fixed it. the person had a bad vote4us.tpl thanks for everyone helping