Jump to content

Roach

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Roach's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. works today with set revenue=+'".$mc_gross."' weird swear it was working yesterday........
  2. sorry dont see an edit post button. yes I see I have $strQuery and $strQuery4 was just changing some code before posting here. yes I know it should be the same. dont see a way to edit it now.
  3. 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
  4. update for anyone who stumbles across this in the future: the code I finally used was: global $my_config; if($this_item !== 't' ){ do this thing} if($this_item !== 'f' ){do another thing} Works for me.... Regards
  5. I am just working within a basic paypal ipn script but I need it to check a field from my config and if field = 't' do this db insert and if field = ' ' <empty do another insert Rochelle
  6. Am I correct is thinking this is what you mean ? global $my_config; if ($this_item['t']) { do this thing} if ($this_item[' ']) { do other thing} When you say just use if statement?
  7. Hi again, So I finaly got by script storing data to config (earlier post) now I need that info in a paypal script. I have tried opening the database from within the script to get stored info however I get all kinds of fgets and fclose errors, presumably because its trying to get the info from paypal ? I gave up on that so now am playing with "if (isset" with: global $my_config; if (isset($this_item['t'])) { do this thing} if (isset($this_item[' '])) { do other thing} after looking at function if (isset around the web I am getting the fealing that it is used more for posted information and not stored info ? Any help appreciated. Rochelle
  8. Would it possible be easier if I had to check boxes: line on and off ? if so how would I tell php if one or another was checked ? like if (isset($my_stuff)) SettingsWriteAdd('$my_stuff', 'checked'); if (isset($my_other_stuff)) SettingsWriteAdd('my_other_stuff', 'checked'); seems like that would be pre defining my_stuff and my_other_stuff as checked allready wouldnt it ? not to mention how to tell if box is actually checked ? Maybe I am kicking a dead cat ? can anyone think of an easier way of adding options (a or b) within the scripting I have other than a check box ? Thanks again, Rochelle
  9. Hi I am sorry if this has already been discussed, I cant seem to find it on the boards..... anyway I have a settings script that saves settings to my config table. I am trying to add a checkbox so I can get a t (true) or f (false) for later referance. The scripting I am trying to place it in is: 'items' => array ( array ( 'type' => 'checkbox', 'name' => 'my_stuff', 'text' => $strMystuff ), all ather variables in other arrays are stored as such: if (isset($this_thingl)) SettingsWriteAdd('this_thing', $this_thingl); if (isset($the_other)) SettingsWriteAdd('the_other', $the_other); Now I have the checkbox on the page all I need to do is have a: if (isset($my_stuff)) SettingsWriteAdd('my_stuff', $what goes here?????); How do i get a checked or not checked and save without a lot more complicated scripting ? Please forgive my ignorance, any help appreciated
×
×
  • 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.