Please please please I really hope someone can help me as I’m trying to setup a donation centre as directed by this tutorial: http://tutorialzine.com/2010/05/donation-center-php-mysql-paypal-api/
The problem with this tutorial is that it is very vague. I have put in all the xhtml and added the two databases. I have placed all the .php files side by side in this directory: http://sakeenaheducationcentre.com/wp-content/themes/StyleShop
I have placed this in the head: <?php
// Determining the URL of the page:
$url = ‘http://’.$_SERVER[‘SERVER_NAME’].dirname($_SERVER[“REQUEST_URI”]);
// Fetching the number and the sum of the donations:
list($number,$sum) = mysql_fetch_array(mysql_query(“SELECT COUNT(*),SUM(amount) FROM dc_donations”));
// Calculating how many percent of the goal were met:
$percent = round(min(100*($sum/$goal),100));
// Building a URL with Google’s Chart API:
$chartURL = ‘http://chart.apis.google.com/chart?chf=bg,s,f9faf7&cht=p&chd=t:’.$percent.’,-’.(100-$percent).’&chs=200x200&chco=639600&chp=1.57’;
I Just don’t know what to do to get it to work - It’s corrently in demo mode but I can’t seem to even donate in demo mode or get the green chart up. I’m also not sure what info to add where for real donations.
I’m not sure about the paypal_class and assigning it PayPal’s URLor about calling the $p->validate_ipn()
I’d really really appreciate a nudge in the right direction, I’ve been working on it for such a long time, although I’ve figured quite a lot out and progressed with some thinking I’m not at a stand still.
I really hope you can help