Jump to content

echo help needed


mushu_tea

Recommended Posts

$q3 = "select * from orders";
$r3 = mysql_query($q3);
$row3 = mysql_fetch_array($r3);
$row3['id'] = $id;
$id = $id ++;

echo "<form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"POST\">";
echo "<input type=\"hidden\" name=\"cmd\" value=\"_xclick\">";
echo "<input type=\"hidden\" name=\"business\" value=\"phantom_eric@hotmail.com\">";
echo "<input type=\"hidden\" name=\"item_name\" value=\"order $id\">";
echo "<input type=\"hidden\" name=\"amount\" value=\"$total\">";
echo "<input type=\"image\" name=\"submit\" src=\"http://images.paypal.com/images/x-click-but03.gif\" alt=\"Pay with PayPal\">";
echo "</form>";

This is my paypal script..however i cant display the order $id in the paypal site...
anyone can teach me what should i do..in order to display the $id


Next is inserting of multiple $pid that i have...

$q2 = "select pro_id from gallery where pro_id IN (";
foreach ($_SESSION['cart'] as $key3 => $value) {
$q2 .= $pid . ',';
}
$q2 = substr($q2 ,0,-1) . ')';
$pid = $key3;

$insert = "INSERT INTO orders (id,username, pids, total, order_date) VALUES ( '$id','$username','$pid','$total','$date')";
$insert2 = mysql_query($insert);

with this statement..i could only insert a $pid into my database only..how to insert multiple $pid into the db?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.