Jump to content

web2000

Members
  • Posts

    39
  • Joined

  • Last visited

Everything posted by web2000

  1. Hello Friends, I am trying to read some of the parameters out of the below Array, but i am getting a little out of my depth and could really do with some help. I am simply trying to display the part "The Tracking Member Code sent is invalid. It must be unique at least during 24 hours" in an echo statement. Any help is appreciated... Array ( [PaymentResult] => Array ( [Result] => 1000 [Message] => Invalid arguments. One or more arguments have invalid values. Please review the parameters sent [TrackingMemberCode] => 79932 [TransactionId] => 0 [TransactionGuid] => 00000000-0000-0000-0000-000000000000 [TransactionDateTime] => 2013-01-22T20:03:44.2532028Z [Cdc] => Array ( [CdcEntry] => Array ( [Name] => ErrorInformation [items] => Array ( [CdcEntryItem] => Array ( [0] => Array ( [Key] => ErrorCode [Value] => 1000001 ) [1] => Array ( [Key] => ErrorMessage [Value] => The Tracking Member Code sent is invalid. It must be unique at least during 24 hours ) ) ) ) ) ) )
  2. Hello, I am looking for an online number plate builder something like http://www.robcurry.co.uk/plate-builders.php Has anyone done anything like this or can help about the best way of designing? Thanks
  3. Perfect it did work, sorry i has the text voucher instead of coupon so didnt work. Thank you very much for your help
  4. Hi, Thanks for that, it didnt work for some reason? The code was perfect but it doesnt seem to work with anything with Discount Voucher on its own or with Discount Voucher then Something after it. Any ideas why? The code now looks like below, Thanks if($check_total['title']!='Total:' and $check_total['title']!='Credit:' and strpos($check_total['title'], 'Discount Voucher')===true and $check_total['title']!='Vat:')
  5. Hello, I have the following PHP statement: if($check_total['title']!='Total:' and $check_total['title']!='Credit:' and $check_total['title']!='Discount Coupon' and $check_total['title']!='Vat:') It is a very simple If then else statement, what i need is where it is and $check_total['title']!='Discount Coupon' I need it to be a like parameter as there may be other text after the Discount Coupon part, i tried LIKE with the % but i think this only relates to mysql. Any help would be great thanks
  6. Thank you for the code. That works and sends the document to the browser correctly. The only issue is that it doesnt open the actual file on the local server it sends it to the browser instead. Is their a way of doing the above, but when it is send to the client it is using the version on the host machine rather than caching it on the clients machine. Thanks very much though i am much further than where i was
  7. Hi, Yes that is what i would like to do, the client machine has word, but it seems the word visible function opens it on the host machine rather than the client machine, is their a way to show the word file it has just opened on the client machine rather than loading it up on the host machine? Thanks for your help.
  8. Here is the code $word = new COM("word.application") or die("Unable to instantiate Word"); $template_file = "C:/Webspace/landlordletter.doc"; $word->Documents->Open($template_file); $word->Documents[1]->SaveAs($doc); $word->visible = 1;
  9. Hello, I am using the COM function in PHP to open and create word documents locally on my intranet server here. It works great when you use it on the host system but when you use it on another machine locally that isnt the host it worked fine, but it opens the word document on the host machine rather than the client machine. Can anyone help as to how to open the word document on the client machine? Thank you.
  10. Is there no simple way of just putting the whole page in to word?
  11. Hi, I have a simple html page, and i want to export the whole page to word. How is this possible please? Thank you so much in advance
  12. Can anyone help? Is it something like /n??
  13. I have the following code: $xml_output .= "\t\t<location>http://pjs.com/" . $row['beat'] . "</location>\n"; I get an error with it though, and it seems to be at this part <location>http://pjs.com/" As soon as i type in the // after the http: it all goes wrong, is there a release character needed maybe for the //
  14. Thanks for the advice guys, how can i actually just delete a session? Is there a way or do i have to set a timeout on the sesssion before it will go away?
  15. Hi, I am trying to delete a session when the page is left. So basically when the page is unloaded, either shut down or if the browser has gone to another page it will delete the session. Any help would be much appreciated
  16. errmm well to totally remove everything other than numbers and text characters so 0-9 and a-z
  17. How can i refresh once though becuase using meta refresh 1 means it happens each second?
  18. I am having a problem with a variable not showing on the page until the refresh button is hit. How can i refresh the page on load once other than redirecting to another page? Thanks
  19. Hello, I want to trim all white spaces our of a string and also any other characters other than numbers and letters. It is for a domain name script so it needs everything removed other than numbers and letters I have this so far but this only does white space?? $text = preg_replace('/\s+/', ' ', $text);
  20. Hello, I am trying to read the sub domain of the url for instence http://something.website.com or http://windows.website.com but i only want to read the first part which is the sub domain so the "something" or "windows" part, any help would be great. Thank you
  21. paul2463 you are a legend, thank you very much solved my problem!
  22. Hello, I have a query which is $query = "SELECT * FROM music"; but i want to add another 2 parameters in there eg, $user = "r0385"; $query = "SELECT * FROM music" ."WHERE" .$user ."= username" Now i know it was something like ."" but i really cant remember any help would be great. Thanks
  23. Thanks for that, can you give me an example on how this work with frames? Sorry im only dreamweaver havent used frames before
×
×
  • 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.