php - Prices from database not working for smart paypal button
one text
Solution:
Don't load the PayPal SDK for every product, only once per page -- echo it in its own <script>
above the while statement or put it in the <head>
of the page.
Your PHP string/variable syntax might be bad, try ending and concatenating:
value: " . $row[paypal_price] . "
Inspect or view source on the resulting page in the browser to verify that the result is what you expect.
Source