php - Paypal payment through database -


good day people!

i have question: im making webshop takes items out of database , shows them code:

foreach($result $row) {      print "<div id='item'>";     echo "product id: ".$row['productid'];     echo "<br/>";     echo "<img src=images/".$row['image'].">";     echo "<br/>";     echo "price: ".$row['price'];     echo "<br/>";     echo "desc: ".$row['description'];     echo "<br/>";     if($_session['username'] == ""){         echo "login buy!";      }else{         echo "<button name='buy'>buy item</button>";     }     echo "</div>"; } 

it works beautifull, can see have button "buy item", there tutorial paypal migration buttons buying specific item, because i've been looking on interwebs , couldnt find one, in advance!

luc

edit: how looks like:

webshop database output


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -