Korono Posted July 10, 2009 Share Posted July 10, 2009 Hi, I'm working with paypal masspay. The sample code ' have uses POST to get values from a form and then constructs a string to send through to paypal servers. What I would like to do instead is get all the values from my database, but I'm not sure how to get my tables into arrays. Here is the paypal sample loop. $count= count($_POST['receiveremail']); for($i=0,$j=0;$i<$count;$i++) { if (isset($_POST['receiveremail'][$i]) && $_POST['receiveremail'][$i]!='' ) { $receiverEmail = urlencode($_POST['receiveremail'][$i]); $amount = urlencode($_POST['amount'][$i]); $uniqueID = urlencode($_POST['uniqueID'][$i]); $note = urlencode($_POST['note'][$i]); $nvpstr.="&L_EMAIL$j=$receiverEmail&L_Amt$j=$amount&L_UNIQUEID$j=$uniqueID&L_NOTE$j=$note"; $j++; } } All the variables that you see in the code I will either have a database column for or will be left blank. Link to comment https://forums.phpfreaks.com/topic/165515-working-with-paypal-masspay/ Share on other sites More sharing options...
aggrav8d Posted July 10, 2009 Share Posted July 10, 2009 use $row=mysql_fetch_array() to get your values. then you can $row['your_column_name'] to get the value. then you can create a table with columns named receivermail, amount, uniqueID, note, etc. Link to comment https://forums.phpfreaks.com/topic/165515-working-with-paypal-masspay/#findComment-873015 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.