Update Project 1 database connection
This commit is contained in:
+9
-1
@@ -1,7 +1,15 @@
|
||||
<?php
|
||||
$conn = new mysqli("localhost", "root", "", "webgis1");
|
||||
|
||||
$conn = new mysqli(
|
||||
"hwgkkcogkwoscgk40k4004sc",
|
||||
"mysql",
|
||||
"w6YvCvUsgAzLUzBconwVAix9nLoxHYv5rWo0VPJCSDfM8fuE4cT2NoUzxvO22OdH",
|
||||
"default"
|
||||
);
|
||||
|
||||
if ($conn->connect_error) {
|
||||
die("Koneksi gagal: " . $conn->connect_error);
|
||||
}
|
||||
|
||||
$conn->set_charset("utf8mb4");
|
||||
?>
|
||||
+22
-49
@@ -1,51 +1,24 @@
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 5.2.1
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: 127.0.0.1
|
||||
-- Generation Time: Jun 10, 2026 at 07:39 AM
|
||||
-- Server version: 10.4.32-MariaDB
|
||||
-- PHP Version: 8.0.30
|
||||
CREATE TABLE lokasi (
|
||||
id INT AUTO_INCREMENT PRIMARY KEY,
|
||||
nama_spbu VARCHAR(255) NOT NULL,
|
||||
no_wa VARCHAR(50),
|
||||
status VARCHAR(100),
|
||||
latitude DOUBLE NOT NULL,
|
||||
longitude DOUBLE NOT NULL
|
||||
);
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
CREATE TABLE jalan (
|
||||
id INT AUTO_INCREMENT PRIMARY KEY,
|
||||
nama_jalan VARCHAR(255) NOT NULL,
|
||||
status VARCHAR(100),
|
||||
panjang DOUBLE DEFAULT 0,
|
||||
geom LONGTEXT NOT NULL
|
||||
);
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
--
|
||||
-- Database: `webgis1`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `jalan`
|
||||
--
|
||||
-- Error reading structure for table webgis1.jalan: #1932 - Table 'webgis1.jalan' doesn't exist in engine
|
||||
-- Error reading data for table webgis1.jalan: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'FROM `webgis1`.`jalan`' at line 1
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `kavling`
|
||||
--
|
||||
-- Error reading structure for table webgis1.kavling: #1932 - Table 'webgis1.kavling' doesn't exist in engine
|
||||
-- Error reading data for table webgis1.kavling: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'FROM `webgis1`.`kavling`' at line 1
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `lokasi`
|
||||
--
|
||||
-- Error reading structure for table webgis1.lokasi: #1932 - Table 'webgis1.lokasi' doesn't exist in engine
|
||||
-- Error reading data for table webgis1.lokasi: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'FROM `webgis1`.`lokasi`' at line 1
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
CREATE TABLE kavling (
|
||||
id INT AUTO_INCREMENT PRIMARY KEY,
|
||||
pemilik VARCHAR(255) NOT NULL,
|
||||
status VARCHAR(100),
|
||||
luas DOUBLE DEFAULT 0,
|
||||
geom LONGTEXT NOT NULL
|
||||
);
|
||||
Reference in New Issue
Block a user