Jump to content

[SOLVED] easy one for you adding totals


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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.