ManiacDan
Staff Alumni-
Posts
2,604 -
Joined
-
Last visited
-
Days Won
10
Everything posted by ManiacDan
-
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' ) );
-
What exactly is involved with using Authorize.net?
ManiacDan replied to Zane's topic in Application Design
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. -
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.
-
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?
-
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.
-
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.
-
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.
-
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.
-
While David is correct about = vs ==, I'm also right about the faulty logic, regardless of the operator used.
-
What exactly is involved with using Authorize.net?
ManiacDan replied to Zane's topic in Application Design
Paymentech was the easiest for me. But again that was 6 years ago. -
How would I implement this version of a dynamic search?
ManiacDan replied to yoursurrogategod's topic in PHP Coding Help
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. -
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().
-
That wasn't my question. I asked what they were trying to accomplish. Why doesn't excel work? What do they actually need?
-
Since Debbie appears to have found an answer (whatever that answer may be), it's safe to close this thread before it escalates.
-
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.
-
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.
-
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.
-
How did any of this get you a working answer?
-
What exactly is involved with using Authorize.net?
ManiacDan replied to Zane's topic in Application Design
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. -
Update new column in existing table with unique values?
ManiacDan replied to we5inelgr's topic in PHP Coding Help
mysql_query ("Update Users Set Unique_ID = '$id' WHERE Unique_ID IS NULL LIMIT 1") or exit (mysql_error()); -
What exactly is involved with using Authorize.net?
ManiacDan replied to Zane's topic in Application Design
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. -
If I asked you to find out, by hand, what the 5 most recently uploaded images were, how would you do it?
-
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.
-
Well for one, nested forms are invalid HTML, you could remove those.