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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

android - Keyboard hides my half of edit-text and button below it even in scroll view -