Skip to content

Instantly share code, notes, and snippets.

View joeljerushan's full-sized avatar
🟢
ETA 10 million LKR in 2024

Joel Jerushan joeljerushan

🟢
ETA 10 million LKR in 2024
View GitHub Profile
@joeljerushan
joeljerushan / index.php
Created March 30, 2018 12:56
Set Selected with PHP without Javascript
<select>
<?php
//init array with key value pairs
$purchase_type = array(
'1' => 'White Rice',
'2' => 'Red Rice',
'3' => 'Wheat',
'4' => 'Packets',
'5' => 'Firewood'
);
@joeljerushan
joeljerushan / gist:3bab1afc775d71034b4bab26f5ecfb9d
Created September 10, 2017 13:04
Wamp Fix VCRUNTIME140.dll by JellRose
01 - Download and install this first - https://www.microsoft.com/en-us/download/confirmation.aspx?id=15336
02 - Second - https://www.microsoft.com/en-us/download/details.aspx?id=30679
03 - Third - https://www.microsoft.com/en-us/download/details.aspx?id=48145
04 - fourth - http://windows.php.net/downloads/qa/php-7.2.0RC1-Win32-VC15-x86.zip
@joeljerushan
joeljerushan / fetch_sample.php
Created July 21, 2017 02:53
sample fetch i created for now
<?php
include_once 'connection.php';
$price = new database();
$get_type_1 = "SELECT * from 01_premium_poster_230_matt";
$get_type_1_fetch = $price->get($get_type_1);
$get_type_2 = "SELECT * from 02_premium_poster_260_semi_gloss";
$get_type_2_fetch = $price->get($get_type_2);