Skip to content
Snippets Groups Projects
Commit 18d76e28 authored by Christophorus Dharma Winata's avatar Christophorus Dharma Winata
Browse files

fix: connect database variable

parent 0f767e67
Branches
Tags
No related merge requests found
<?php <?php
require_once "connect_database.php";
global $conn; $conn = connect_database();
if ($_SERVER["REQUEST_METHOD"] == "POST" and $_POST["signal"] == "make-purchase") { if ($_SERVER["REQUEST_METHOD"] == "POST" and $_POST["signal"] == "make-purchase") {
global $conn; global $conn;
$query = "SELECT * FROM `item` WHERE username = (?) $query = "SELECT * FROM `item` WHERE username = (?)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment