Jump to content

[SOLVED] easy one for you adding totals


Roach

Recommended Posts

I thought I had this working and everything was fine however I see that its not adding the totals so back to that

any help appreciated.

 

$strQuery =("update {$db_prefix}tablename set revenue=revenue+'".$mc_gross."', revenue_type='4', activate='".$fecha."' WHERE campaignid='".$new_ID."'");
    $result = mysql_Query($strQuery4) or die (mysql_error());

 

can you see the error in the adding? I swear it worked yesterday. Its not returning an error and is doing the update less the total.

 

mysql 5.0.45-community

php 5.2.4

 

Link to comment
https://forums.phpfreaks.com/topic/87796-solved-easy-one-for-you-adding-totals/
Share on other sites

I thought I had this working and everything was fine however I see that its not adding the totals so back to that

any help appreciated.

 

$strQuery =("update {$db_prefix}tablename set revenue=revenue+'".$mc_gross."', revenue_type='4', activate='".$fecha."' WHERE campaignid='".$new_ID."'");
    $result = mysql_Query($strQuery4) or die (mysql_error());

 

can you see the error in the adding? I swear it worked yesterday. Its not returning an error and is doing the update less the total.

 

mysql 5.0.45-community

php 5.2.4

 

 

works today with set revenue=+'".$mc_gross."'

 

weird swear it was working yesterday........

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.