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
| //if user click login button | |
| if(isset($_POST['login'])){ | |
| $email = mysqli_real_escape_string($con, $_POST['email']); | |
| $password = mysqli_real_escape_string($con, $_POST['password']); | |
| $check_email = "SELECT * FROM users WHERE email = '$email'"; | |
| $res = mysqli_query($con, $check_email); | |
| if(mysqli_num_rows($res) > 0){ | |
| $fetch = mysqli_fetch_assoc($res); | |
| $fetch_pass = $fetch['password']; | |
| if(password_verify($password, $fetch_pass)){ |
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
| DELIMITER $$ | |
| USE `bisu_contact_tracer`$$ | |
| DROP PROCEDURE IF EXISTS `sp_add_admins`$$ | |
| CREATE DEFINER=`root`@`%` PROCEDURE `sp_add_admins`( | |
| IN _fullname VARCHAR(255), | |
| IN _gender VARCHAR(255), | |
| IN _office VARCHAR(255), |
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
| var Gpio = require("onoff").Gpio; | |
| var led = new Gpio(4, "out"); | |
| var x = 0; | |
| while(true) | |
| { | |
| // always make sure to update something in your condition | |
| // so you dont fall into an infinite loop | |
| console.log("Blinking"); | |
| sleep(1000); | |
| led.writeSync(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
| <?php declare(strict_types=1); // strict requirement | |
| function location(int $a, int $b, int $c, int $d) { | |
| // Insert Formula Here | |
| $x = $c + $d; | |
| $y = $a + $b; | |
| $output = "O: Finance, X: ".$x.", Y: ".$y; | |
| return $output; | |
| } | |
| echo location(1, 1, 2, 2); |
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
| #include<iostream> | |
| #include<fstream> | |
| #include<stdlib.h> | |
| #include<string.h> | |
| #include<ctype.h> | |
| using namespace std; | |
| int isKeyword(char buffer[]){ | |
| char keywords[32][10] = {"auto","break","case","char","const","continue","default", |
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
| 404: Not Found |