I'm trying to implement buy.php, and I'm getting this list of errors, constant database already defined, Constant password already defined, apologize already declared. I don't know why this is happening for buy.php only. All my previous ones worked fine.
I tried replacing require with require_once but the error stays.
My buy_form.php works perfectly fine. It's only when I try to buy a share that this happens.