Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View rmak78's full-sized avatar
🎯
Focusing

Rana Mansoor Akbar Khan rmak78

🎯
Focusing
View GitHub Profile
@rmak78
rmak78 / whatsapp_linebreak.php
Created December 20, 2022 10:36
How to send Whatsapp Messages with line breaks etc
<?php
//https://wa.me/+99123456789?text=Line%0aBreak
//The %0a represents the line break
$message = urlencode("**NEW ORDER**")."%0a";
$message .= urlencode("ProductID : $product_id")."%0a";
$message .= urlencode("Product Name : *$product_name*")."%0a";
$message .= urlencode("***************")."%0a";
$message .= urlencode("Customer Name : *$name*")."%0a";
@rmak78
rmak78 / pk_phone_pattern
Last active December 20, 2022 10:33
HTLM5 Snippet Pattern for PAK Phone Number Format
<input type="text" pattern="03[0-9]{2}-(?!1234567)(?!1111111)(?!7654321)[0-9]{7}" name="mobile_number" placeholder="Mobile Number" required>
@rmak78
rmak78 / Pre-launch Website Checklist.md
Created November 11, 2022 13:29 — forked from ketanmistry/Pre-launch Website Checklist.md
Pre-launch Website Checklist. Add this as a final issue to the Github repository.

Pre-launch Website Checklist

The following checklist should be actioned after all major development work has been completed.

Browser Testing

Check the website:

  1. Responds to different devices and screen sizes appropriately.
  2. The design of the site is displayed as expected.
https://www.buyon.pk/sell-on-buyon
https://www.goto.com.pk/sell-on-goto
https://faisalfabrics.pk/pages/sell-on-faisalfabrics-pk
https://www.pakstyle.pk/info/sell-on-pakstyle
https://themes.pk/sell-on-themes/
https://digitaldukaan.pk/sell-on-digital-dukaan/
https://www.sellwhatever.com/createstore
https://www.telemart.pk/vendor/register
https://grocers.com.pk/pages/sell-on-grocers
https://plant.pk/become-a-vendor/
Abbottabad, Khyber Pakhtunkhwa, Pakistan
Ahmed Khel, Khyber Pakhtunkhwa, Pakistan
Al Hamra Hills, Islamabad Capital Territory, Pakistan
Allama Iqbal Town, Punjab, Pakistan
Attock, Punjab, Pakistan
Azad Jammu and Kashmir, Pakistan
Bahawalpur, Punjab, Pakistan
Bahria Enclave, Islamabad Capital Territory, Pakistan
Bahria Town Karachi, Sindh, Pakistan
Bin Qasim Town, Sindh, Pakistan
@rmak78
rmak78 / dates_table_builder.sql
Created January 29, 2022 04:10
Create a Calender in MySQL
DROP TABLE IF EXISTS dates;
CREATE TABLE dates (
idDate INTEGER PRIMARY KEY, -- year10000+month100+day
fulldate DATE NOT NULL,
year INTEGER NOT NULL,
month INTEGER NOT NULL, -- 1 to 12
day INTEGER NOT NULL, -- 1 to 31
quarter INTEGER NOT NULL, -- 1 to 4
week INTEGER NOT NULL, -- 1 to 52/53
dayOfWeek INTEGER NOT NULL, -- 1 to 7
<?php
require('../functions.php');
$order_id = isset($_POST['order_id'])?(int)$_POST['order_id']:die('Whoops..! Something went wrong');
$order = DB::queryFirstRow("SELECT * FROM oc_order o
WHERE o.`order_id` = '".$order_id."'");
$weight = $_POST['weight'];
@rmak78
rmak78 / country select list with country name as option value
Created June 2, 2015 17:11
Country select list with country name as option and value
<select class="form-control" required
name="country" id="country">
<option value="Afghanistan">Afghanistan</option>
<option value="Albania">Albania</option>
<option value="Algeria">Algeria</option>
<option value="American Samoa">American Samoa</option>
<option value="Andorra">Andorra</option>
<option value="Angola">Angola</option>
<option value="Anguilla">Anguilla</option>
<option value="Antartica">Antarctica</option>