Jump to content

shatner

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

shatner's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hey Guys, Hope I've posted in the correct place! I’m looking for recommendations for a payment processing service in the USA. Can anyone point me in the direction of a decent service? Or has anyone had experience with: Chase Paymentech, First Data or Element Payment Services? We’re looking at processing a low volume of high value ($3k+) transactions. Thanks for any pointers you could give. Andy
  2. If the variable has been sent using get it will appear in the address bar, however form data sent using post wont be visible. You can get the variables using $_POST["?"] instead of $_GET["?"]
  3. if ($newcredits > 0){ $query = " UPDATE `rescus` SET `credits` = credits-$newcredits WHERE `customer` = '" . $_SESSION['username'] . "' "; }
  4. That’s fantastic, exactly what I needed! Thanks for your help
  5. Thanks for that but I'm not going to know which bit to strip out, it wont be the same 'This is' string every time so that wont work. Think i've got it working by splitting the string into an array of words and then using in_array to look for duplicates. Cheers
  6. $data = ' abc=123 qqqqqqq=938 eeeeeee=87373 '; $records = explode("\n", $data); // split the data up line by line foreach($records as $record){ // loop through each line $bits=explode('=', $record); // split the line by the '=' $text = trim($bits[0]); // 1st bit of the line $number = trim($bits[1]); // 2nd bit of the line echo $text . '' . $number . '<br>'; // print it back out }
  7. Hi Guys, I’m hoping you can help; I have a list of items which all contain a similar string e.g.: This is line number 1 This is colour green This is a silly example So all the above contain ‘This is’; I want to create a dropdown menu with this bit removed (But I won’t know what the ‘same’ bit will be) The dropdown in the example above would consist of the following: <select name="select"> <option value="1">line number 1 </option> <option value="2">colour green </option> <option value="3">a silly example </option> </select> Any ideas on a good way to go about this? , is there a function to remove matching string sections from two initial strings/array items? Any help would be very much appreciated Shatner
×
×
  • 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.