This file contains hidden or 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 | |
| $link = new mysqli('localhost','root','','test2'); | |
| $SQL = "SELECT DISTINCT class FROM TEST"; | |
| $query = $link->query($SQL); | |
| while ( $row = $query->fetch_assoc() ) { | |
| $classes[] = $row['class']; | |
| } |
This file contains hidden or 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
| server { | |
| listen 8080 default_server; | |
| listen [::]:8080 default_server ipv6only=on; | |
| root /var/www/; | |
| index index.php index.html index.htm; | |
| location ~ \.php$ { | |
| try_files $uri =404; | |
| fastcgi_split_path_info ^(.+\.php)(/.+)$; |
This file contains hidden or 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
| with open('test.txt') as f: | |
| mylist = [x.strip('\n') for x in f.readlines()] | |
| for word in mylist: | |
| word_length = len(word) | |
| lower_case = 0 | |
| for w in word: | |
| if w.islower(): | |
| lower_case += 1 |
This file contains hidden or 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 lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Document</title> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> | |
| </head> | |
| <body> | |
| <div class="page-header"> | |
| <h1>Monserver <small>Monserver system</small></h1> |
This file contains hidden or 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
| No:1 | |
| Name: Gan | |
| Number: 0163049602 | |
| Location: Sabah - Penampang | |
| No:3 | |
| Name: sam | |
| Number: 0195825331 | |
| Location: Sabah - Kunak |
This file contains hidden or 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
| import requests, json | |
| from func import * | |
| from login import * | |
| from customer import * | |
| from tax import * | |
| # Objects | |
| main = Main('auth') | |
| customer = Customer('customers') |
This file contains hidden or 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 | |
| if ( isset($_GET['action'])){ | |
| $action = $_GET['action']; | |
| switch($action){ | |
| case "process": | |
| $start_date = $_POST['start_date']; | |
| $end_date = $_POST['end_date']; |
This file contains hidden or 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 | |
| function validation(){ | |
| $dbServer = 'localhost'; | |
| $dbUserName = 'root'; | |
| $dbPassword = ''; | |
| $dbName = 'DBeoi'; | |
| $eoinumber = $_POST["eoinumber"]; | |
| $lastname = $_POST["lastcheck"]; |
This file contains hidden or 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 | |
| function validation(){ | |
| $dbServer = 'localhost'; | |
| $dbUserName = 'root'; | |
| $dbPassword = ''; | |
| $dbName = 'DBeoi'; | |
| if (isset($_POST['eoinumber'],$_POST['lastcheck'])){ | |
| $eoinumber = $_POST['eoinumber']; |
This file contains hidden or 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 | |
| $sql = "SELECT COUNT(id) as count FROM eoi"; | |
| $query = $dbConx->query($sql); | |
| $row = $query->fetch_assoc(); | |
| $count = $row['count'] | |
| echo $count; |