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> | |
<head> | |
<title>Get Data From a MySQL Database Using jQuery and PHP</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
<script> | |
$(document).ready(function(){ | |
// Set form variable | |
var form = $('#search_form'); | |
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
<h1>About</h1> | |
<p>This is the about page</p> |
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 | |
/* | |
Plugin Name: John Morris Grid | |
Plugin URI: http://johnmorrisonline.com/ | |
Description: Demo plugin that displays posts in a grid format via shortcode | |
Version: 1.0.1 | |
Author: John Morris | |
Author URI: http://johnmorrisonline.com | |
Text Domain: johnmorris-grid | |
License: GNU General Public License v2 or later |
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 _e($string) { | |
echo htmlspecialchars($string, ENT_QUOTES, 'UTF-8'); | |
//echo htmlentities($string, ENT_QUOTES, 'UTF-8'); | |
} | |
?> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> |
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 | |
/** | |
* Performs password hashing | |
* | |
* This class is used to perform common password hashing routines | |
* | |
* @version 1.0 | |
* @author John Morris <[email protected]> | |
*/ | |
class Hash_Password { |
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 | |
/** | |
* Validates email addresses | |
* | |
* This class is used to validate email addresses using several different criteria. | |
* | |
* @version 1.0 | |
* @author John Morris <[email protected]> | |
*/ | |
class validate_email { |
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 | |
// Be sure to configure your file paths according to YOUR setup below | |
// Watch the associated videos here: https://www.youtube.com/playlist?list=PLLs69n7Q4dCx5_7ZwnxTymH8X0iRP_2vw | |
require_once( dirname( __FILE__ ) . '/config.php' ); | |
require_once( dirname( __FILE__ ) . '/shared/ez_sql_core.php' ); | |
require_once( dirname( __FILE__ ) . '/mysqli/ez_sql_mysqli.php' ); | |
$db = new ezSQL_mysqli(DB_USER, DB_PASS, DB_NAME, DB_HOST, DB_ENCODING); |
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 | |
// Be sure to input YOUR database details below | |
// Watch the associated videos here: https://www.youtube.com/playlist?list=PLLs69n7Q4dCx5_7ZwnxTymH8X0iRP_2vw | |
define( 'DB_USER', 'DB USERNAME' ); | |
define( 'DB_PASS', 'DB PASSWORD' ); | |
define( 'DB_NAME', 'DB NAME' ); | |
define( 'DB_HOST', 'localhost' ); | |
define( 'DB_ENCODING', '' ); |
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 | |
// Be sure to input YOUR database details below | |
// Watch the associated videos here: https://www.youtube.com/playlist?list=PLLs69n7Q4dCx5_7ZwnxTymH8X0iRP_2vw | |
$db_user = 'DB USERNAME HERE'; | |
$db_pass = 'DB PASSWORD HERE'; | |
$db_name = 'DB NAME HERE'; | |
$db_host = 'localhost'; | |
// MySQLi |