Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. A posted variable wont be empty. It will be a string. Not to mention your code is only going through what was actually posted. Edit: damn iPhone! fixed typos.
  2. Either use an array or do the comparison three times.
  3. That's fine, it's a string. There's absolutely no problem with that.
  4. Line 17... So there's a whole bunch of code you didn't post. Like I said - the code YOU ORIGINALLY POSTED could not produce that error.
  5. Why are you putting sensitive information into the globals array? Use constants. The code you've posted would not produce an error about an undefined variable. You're also not checking for errors.
  6. Thanks Kicken, I didn't look too closely at it because he said it worked.
  7. Yeah I hid it because it takes up 4/5ths of the entire page. That's annoying. Salathe can still see it, I have no idea what he wants to do with it.
  8. See, that's a whole hell of a lot different than your original post, isn't it.
  9. I would try putting the code on my laptop/desktop/whatever pc and use something like WAMP to set up a localhost to do testing, since it sounds like you're using a shared host.
  10. This forum is for help with code you wrote. Did you try googling the topic? They should have given you a URL for their API as well.
  11. I don't see anything that indicates the OP's code works on a development server, it sounds like it does have a fatal parse error, which would cause ini_set to never get processed. Better to change it in the php.ini.
  12. echo $array['PaymentResult']['Cdc']['CdcEntry']['Items']['CdcEntryItem'][1]['Value'];
  13. Cool story bro. Edit: well if you post the code it ruins my post. Pah.
  14. Since you haven't asked a question about a specific problem, this looks more like peer-review request, so I'm moving this to critiques.
  15. Why are you defining the allowed extensions way after trying to use it?
  16. Which is your site, u-a-s.com or lahori.org??
  17. There must be more code then. I suggest A. Hire someone who knows what they're doing. B. Hire a lawyer. C. Learn from the mistake.
  18. Good job interpreting that logic and writing the code.
  19. There's two ways, one is you could set a variable to true before entering the loop, and in the while loop check to see if it's true. If it is, skip the row and set that variable to false. Then from then on it will be false and not skip the row. Probably the simpler way.
  20. Try using full tags, not short tags. If that doesn't fix it, show us the actual output.
×
×
  • 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.