Jump to content

ManiacDan

Staff Alumni
  • Posts

    2,604
  • Joined

  • Last visited

  • Days Won

    10

Everything posted by ManiacDan

  1. If English is not your first language, just try to say MORE on the subject so we can get an idea of what you mean. What you need to be doing is storing the cart in the session using the product ID as the key: $_SESSION['cart'][$productId] = array('quantity' => 5, 'price' => 9.99, 'options' => array( 'color' => 'green', 'size' => 'medium' ) );
  2. You will use SSL, but you will not need to purchase an SSL certificate. Just like you use SSL when you visit amazon.com without buying a cert for your computer.
  3. You don't have a database with product IDs? The session is unique for every user, they don't SHARE the session like they do a database.
  4. Explain what you're trying to do. Do you want a unique ID, or do you want the number 1? What will this be used for and why do you want it?
  5. Use the session
  6. The bigger the company is, the dumber the employees are. Big companies have people in them that do nothing other than summarize the work of the people below them. If there's more than 3 people between you and the CEO, at least one of them does literally nothing of value. Just because IBM produced Watson and Deep Blue doesn't mean that the guy running the summer intern program in Wisconsin has PhD in artificial intelligence. If you want to work with mostly smart, capable people, you can either try to get into the R&D department at a large company, or work for a successful small company. I always work for companies with fewer than 100 employees, and everyone I encounter is useful and intelligent (with some rare exceptions). When I first started my career I worked at a large, older company. I watched one guy in my department read a book for an entire week. He got to work, checked his email, then put his glasses on and read Tom Clancy. For 40 straight hours. Small companies will notice that, big ones will not.
  7. I agree with smoseley, that's why I started this out by asking what are they trying to accomplish. Apparently the answer is "they can't use commercial software packages so I have to write a program to do it for them." If this is the way they approach technology, you'd better look for another job just in case.
  8. Your INSERT statement contains "first_bane" as a column name. Pretty sure that's wrong. Always, always check the errors, that would have produced a VERY clear error message.
  9. Did your contract with the developer not include implementation? Without a working knowledge of PHP and web technologies yourself, it's going to be really hard to get this working.
  10. While David is correct about = vs ==, I'm also right about the faulty logic, regardless of the operator used.
  11. Paymentech was the easiest for me. But again that was 6 years ago.
  12. Don't use a hidden field, use a javascript array. That's what they're for. Always describe the problem. Don't ask how to implement your chosen solution, it's often wrong.
  13. for ($y = 0; $y < count($laagsteBbreukX); $y++){ if ($laagsteBbreukX[$y] != 'error' && $laagsteGet = 'error'){ $laagsteGet = $laagsteBbreukX[$y]; } else if ($laagsteBbreukX[$y] != 'error' && $laagsteBbreukX[$y] < $laagsteGet){ $laagsteGet = $laagsteBbreukX[$y]; } } This code says "for every item in the array, if the item is not 'error', use it." The 'else if' is never hit. That's why you're getting the last item in the list. You could also use array_filter to strip everything but the numbers by using $arr = array_filter($arr, 'is_float'); then use min().
  14. That wasn't my question. I asked what they were trying to accomplish. Why doesn't excel work? What do they actually need?
  15. Since Debbie appears to have found an answer (whatever that answer may be), it's safe to close this thread before it escalates.
  16. Why did they ask you to change it to word? What are they trying to do with it? Do they really want an excel table in a word document? What possible purpose does that serve? "Serve plaintext" can either mean: 1) Serve a normal HTML page with <pre> tags to format your data 2) Serve a text/plain header then dump the output formatted like console output Ask them what they're trying to accomplish and what format they need the data in. "just put a table in word" is not an answer.
  17. You cannot echo any data before making a header() call. You have an echo before your header. Also, you must exit() after any header() call.
  18. Why does this have to be a DOC file? This is a data table, why not output it in the data table reader (excel)? Failing that, serve it in plaintext. Doc is the wrong format for this.
  19. How did any of this get you a working answer?
  20. What? Really? Since when? I last used them in...2006, and their documentation was horrendous. Plus, my favorite part, their XML error messages weren't valid XML, so their responses couldn't be parsed using an XML parser.
  21. mysql_query ("Update Users Set Unique_ID = '$id' WHERE Unique_ID IS NULL LIMIT 1") or exit (mysql_error());
  22. You usually post an XML document to the payment processor through cURL (or SOAP), which attaches to a secured endpoint. The SSL cert is done at the authorize.net end, not on your end.
  23. If I asked you to find out, by hand, what the 5 most recently uploaded images were, how would you do it?
  24. If you want anyone who clicks the link to be automatically logged in, why are you even password protecting the site? Do away with that entirely if you don't want it to be secure Also, not wanting your admin section to be secure is silly, I hope you realized that on your own during the first line.
  25. Well for one, nested forms are invalid HTML, you could remove those.
×
×
  • 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.