01-15-2017, 02:00 AM
I realised my question wasn't very detailed or precise.
I am using a folder structure that looks like this:
/users/
|--paypal/
|
|--checkout.php
I want to be able to somehow require the init.php file in the checkout.php so that I can access the db and update a table that I've created in the database called paypal_transactions.
Here's a hastebin of the checkout.php file
https://hastebin.com/bimerarixa.xml
I developed this code following a tutorial, so i'm quite sure that there is a better way to insert into the database than what is shown in the file.
Thank you for any guidance you might have!
I am using a folder structure that looks like this:
/users/
|--paypal/
|
|--checkout.php
I want to be able to somehow require the init.php file in the checkout.php so that I can access the db and update a table that I've created in the database called paypal_transactions.
Here's a hastebin of the checkout.php file
https://hastebin.com/bimerarixa.xml
I developed this code following a tutorial, so i'm quite sure that there is a better way to insert into the database than what is shown in the file.
Thank you for any guidance you might have!