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
//send data to a php file using AJAX | |
$.ajax({ | |
type: 'POST', | |
url: 'del_table.php', | |
data: {'variable': myval}, | |
}); |
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 | |
if(isset($_POST["login_btn"])) { | |
$conn = new mysqli("localhost","id3320560_root_lol","lol1234","id3320560_organd"); | |
if($conn->connect_error) { | |
die("Connection failed: " . $conn->connect_error); | |
} | |
$username = $_POST["username"]; |
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 | |
$conn = new mysqli("localhost","id3320560_root_lol","lol1234","id3320560_organd"); | |
if($conn->connect_error) | |
die("Connection failed".$conn->connect_error); | |
$name = $_POST["name"]; | |
$username = $_POST["username"]; | |
$email = $_POST["email"]; |
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
/* | |
First function requires an executable called pdfinfo.exe | |
Alternative function using python script needs PyPDF2 package to be installed | |
*/ | |
<?php | |
// Make a function for convenience | |
function getPDFPages($document) | |
{ |
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
-- is used for single line comment | |
/* some sql code */ -> is used for multiline comment | |
--CREATE A DATABASE | |
--SYNTAX : CREATE DATABASE db_name; | |
CREATE DATABASE STUDENT; | |
NewerOlder