https://github.com/rnwood/smtp4dev/blob/master/docs/Installation.md This is a very good tool for testing email sending locally.
Codeacademy
https://www.codecademy.com I’ve recently using this site to learn my react for interviews and it is really good an straight forward
SQL Generate string with leading character/number
MSSQL: MYSQL:
Casting string to bigint for MSSQL & MYSQL
MSSQL: MYSQL:
MYSQL Row_number usage and example
Imagine data as below:- category_id item_name 1 Item A1 1 Item A2 1 Item A2 2 Item B1 2 Item B1 2 Item B2 3 Item C1 3 Item C2 In this query: Now, let’s see the result of executing this modified query on our sample data: category_id item_name displayOrder 1 Item A1 1 1 […]
XAMPP DB Crash fix
It is possible, I found out a solution: Install new xampp Copy your old database folder from xampp\mysql\data\databasefolder to Paste in your running xampp folder C:\xampp\mysql\data After that stop mysql and apache service then backup your running xampp files ib_logfile0,ib_logfile1 and ibdata1 and store in safe place Then Copy same file (ib_logfile0,ib_logfile1 and ibdata1) from […]
PHP MSSQL PDO
You can download the PDO for sql server here. Next you would want to add the dll or so into your php.ini. ;;;;;;;;;;;;;;;;;;;;;; ; Dynamic Extensions ; ;;;;;;;;;;;;;;;;;;;;;; extension=php_pdo_sqlsrv_74_ts_x64.dll extension=php_sqlsrv_74_ts_x64.dll
Nested for loop break ( multi-level up to 4 layer)
In below example will have 4 arrays and will be nested. Below example will break 2 which means that it will go back to Loop B. In order to go back to Loop A , will be break 3. break 4 will stop the everything, which means it won’t loop anymore $array1 = array(‘1′,’2′,’3′,’4’); $array2 […]
Rerun an array even if the loop will change the array elements
I have this problem where i will need to loop an array but while looping it , i will add elements into array and i need to loop that data as well. Below are an example that you can do so:- $array = array(‘1′,’1.5′,’3′,’5′,’7’); $count = count($array); for($i=0; $i
Parallax example
https://keithclark.co.uk/articles/pure-css-parallax-websites/