Skip to content

Instantly share code, notes, and snippets.

View wyntonfranklin's full-sized avatar
🎯
Focusing

Wynton Franklin wyntonfranklin

🎯
Focusing
View GitHub Profile
@wyntonfranklin
wyntonfranklin / db.php
Created June 12, 2019 19:35
Functions for your database operations
<?php
function db_connect(){
$host = "127.0.0.1";
$user = "";
$password = "";
$db = "test";
try {
$conn = new PDO("mysql:host=".$host.";dbname=".$db, $user, $password);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
@wyntonfranklin
wyntonfranklin / html.php
Created June 11, 2019 17:58
Creating simple php dynamic html elements
<?php
function create_link( $title, $url, $attributes=array()){
$o = "<a ";
$o .= "href='".$url."'";
if(!empty($attributes)){
foreach($attributes as $key =>$value){
$o .= "$key='".$value."' ";
}
@wyntonfranklin
wyntonfranklin / cool-plugins.md
Last active March 6, 2021 03:54
A list of cool jquery plugins

List of Plugins and links to plugins

A list of jquery plugins I have worked with. I keep coming back to them because they are very effective. There are alot more outthere. Somemay even be better but these I can confirm works well.

Magnific Popup - https://dimsemenov.com/plugins/magnific-popup/ Use to create cool popups in your application.

jQuery LoadingOverlay - https://github.com/gasparesganga/jquery-loading-overlay Creates a loading overlay for you ajax operations

jQuery Confirm - https://craftpip.github.io/jquery-confirm/

@wyntonfranklin
wyntonfranklin / test-sample.php
Created December 28, 2018 00:46
test-sample
<?php
echo "hello world. We are testing";
?>