This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE IF NOT EXISTS `daftar_paket` ( | |
`id` int(5) NOT NULL, | |
`kode_paket` varchar(4) NOT NULL, | |
`nama_paket` varchar(20) NOT NULL, | |
`harga` int(10) NOT NULL, | |
`keterangan` varchar(40) NOT NULL, | |
`jadwal` varchar(20) NOT NULL, | |
`pengajar` varchar(10) NOT NULL | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$base_url = 'http://localhost/modal_dinamis'; | |
define('DBHOST', 'localhost'); | |
define('DBUSER', 'myusername'); | |
define('DBPASS', 'mypassword'); | |
define('DBNAME', 'mydatabase'); | |
$db = new mysqli(DBHOST, DBUSER, DBPASS, DBNAME); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once("./application/config/database.php"); | |
$query = mysqli_query($db, "SELECT * FROM daftar_paket;"); | |
?> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Modal bootstrap dinamis | wadagizig.com</title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once("./../../application/config/database.php"); | |
if($_POST['getDetail']) { | |
$id = $_POST['getDetail']; | |
$sql = mysqli_query($db, "SELECT * from daftar_paket where id='$id'"); | |
while ($row = mysqli_fetch_array($sql)){ | |
?> | |
<!-- Modal --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*----------------- | |
Just custom alert | |
-----------------*/ | |
echo "<script>alert('Simpan data berhasil !'); window.location.href = '../../';</script>"; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
<title>wadagizig Telegram bots</title> | |
<!--link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"--> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('DBHOST', 'myhost'); | |
define('DBUSER', 'myuser'); | |
define('DBPASS', 'mypassword'); | |
define('DBNAME', 'mydatabase'); | |
$db = new mysqli(DBHOST, DBUSER, DBPASS, DBNAME); | |
if ($db->connect_error) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* memasukan config.php, harap sesuaikan folder penyimpanan | |
untuk file-file assets dibawah, silahkan cari sendiri ya! :) */ | |
require_once '../config/config.php'; | |
?> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
------------------------------------------------------ | |
login-validasi.php: menangkap variable yang dikirimkan | |
pada file login.php | |
------------------------------------------------------ | |
*/ | |
require_once '../config/config.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP TABLE IF EXISTS `users`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `users` ( | |
`id` int(10) unsigned NOT NULL AUTO_INCREMENT, | |
`name` varchar(50) NOT NULL, | |
`username` varchar(50) NOT NULL, | |
`telegram_id` int(50) NOT NULL, | |
`password` text NOT NULL, |
OlderNewer