Advertisement

04.14.2005 at 01:51PM PDT, ID: 21389482
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.0

Paypal with PHP and database access

Asked by sciwriter in PHP and Databases

Tags:

The Paypal interface has been poorly handled here before, so I want something useful to me and others.  The basic <FORM> I will post below.   I am storing the data in sessions, which came from a database.

Paypal says to send your order in a form, which they present for payment.  Not interested in giving them all the details of an order, instead, we are going to use Paypal's first option --

    Method 1. Passing the Aggregate Cart Amount to PayPal
(https://www.paypal.com/us/cgi-bin/webscr?cmd=p/pdn/howto_checkout)

I need help formatting the "aggregate Cart" with PHP and database fields, or in my case, session data.  We need to make the Item (their t-shirt example) read :  

"Your order of <date> for <X> Items from <site>, Total Order Cost <$amount>.

To do this:  

1.  The <date> needs to be gotten from the server and presented like --  May 16, 2005
2.  The site could be hard coded, but I would like to extract  "www.thissite.com" from the URL itself.
3.  The <X> quantity is the number of items in the PHP session, which is the "key" in this statement --  
                 foreach($_SESSION['divs'] as $key => $val)
In that loop we will:
(a) add the number of items, which will .$_SESSION['divs'][$key]['qty']., convert to a character
(b) add up the <$amount> from each item, $_SESSION['divs'][$key]['price'] times the qty above
(c) total and convert $amount to 2 decimal places
(d) take the value of shipping returned from a javascript function Calc_ship(), say call it 'totship'
(e) add to total price in B above, to get order total, but split each into the form going to Paypal.

Take your time with this code, it has not been done this way before in this section, AFAIK.Start Free Trial
[+][-]04.14.2005 at 01:51PM PDT, ID: 13785800

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.14.2005 at 09:13PM PDT, ID: 13787978

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.14.2005 at 09:28PM PDT, ID: 13788028

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.14.2005 at 09:36PM PDT, ID: 13788054

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: PHP and Databases
Tags: php
Sign Up Now!
Solution Provided By: peyox
Participating Experts: 1
Solution Grade: A
 
 
[+][-]04.14.2005 at 09:43PM PDT, ID: 13788075

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.14.2005 at 10:05PM PDT, ID: 13788164

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.14.2005 at 10:18PM PDT, ID: 13788219

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.15.2005 at 06:29AM PDT, ID: 13790415

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.15.2005 at 12:59PM PDT, ID: 13793911

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32