Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. What "data" are you storing that NEEDS to have PHP in it?
  2. I'm assuming he had an agreement to get paid. If he actually agreed to do it for free, then yes. But I take "Lets pretend they were not interested in getting work done for free." to mean the OP thinks he was going to get paid. Honestly, me personally, I'm not even going to bother looking at any code from someone who didn't get a contract and sent work without payment. *shrug* Maybe other people have more free time, but I am going to assume there's going to be issues with the code if there's that big an issue with the developer's business.
  3. No. Don't store PHP in your database. Bad.
  4. Did you ask the person to whom you gave the code for free what he meant? If he can't define what is wrong, send the invoice.
  5. Did you send someone code without having a contract or getting paid? If the answer is yes, then yes, you are not experienced enough. Now you have learned a lesson.
  6. I'm going to guess undefined index. If so, OP do a print_r($_POST); What do you see?
  7. So, do you see ANY javascript in what you posted? I'm moving this to JS help btw.
  8. If you bought it online, you should seek support from the person who sold it to you. Otherwise, you'll probably need to pay someone to do the PHP part for you. We don't write code for you here. If you can't even get started with it on your own, you'll want to hire someone.
  9. You need to check if $_POST['colour'] exists before trying to use it. You could use a ternary operation to assign $csel. $csel = isset($_POST['colour']) ? $_POST['colour'] : NULL;. Also, based on your code, there is no way $csel is going to be an array, so don't try to use a foreach on it. You're already looping through the colors.
  10. As you can see from the var dump, the values are arrays. If you don't yet know how to use arrays, read the manual.
  11. That is a very detailed and exact example of what spoon-feeding someone the answer would look like. Thanks.
  12. Can we get a little more whine or rage? That's such a passive aggressive version of "do it for me or I'm leaving".
  13. How did you come up with 2012-07-01 in order to write the question? Now convert that process into code.
  14. I think you're confused about what a remainder is. It's the single digit left over that doesn't fit into the divisor at all. 0/3 = 0 (no remainder) 1/3 = 0 (with a remainder of 1). 2/3 = 0 (with a remainder of 2). 3/3 = 1 (no remainder) etc.. 7/3 = 2 (with a remainder of 1). 8/3 = 2 (remainder = 2). Etc. This might help as well: http://en.wikipedia.org/wiki/Remainder Or maybe this one more so: http://en.wikipedia.org/wiki/Modulo_operation In most practical uses, the % is only going to be checked to see when it == 0. For things like loops where you want to color every other row, or have a row with $x cells, etc.
  15. As one of our member's signatures says, "Java is to Javascript as fun is to funeral." You have javascript, it is not java. You may want to look into using jQuery. The problem you're having is that inputs have a value, whereas textareas have innerHTML. Try changing the innerHTML to value. If that doesn't work, definitely look at jQuery. It's so much easier.
  16. You'd build the site to work without javascript, then have the javascript override the regular functionality. This means real URLS in links, which go to real functioning pages. Then when someone clicks the link, you prevent the default behavior (IE: jQuery does it event.preventDefault() then tell it what to do instead.)
×
×
  • 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.