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++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -