Skip to content

Instantly share code, notes, and snippets.


Anjanesh Lekshminarayanan anjanesh

View GitHub Profile
anjanesh / find-intersection-among-arrays.js
Created Oct 13, 2011
Find Intersection Among Arrays
View find-intersection-among-arrays.js
ar : can be an array of arrays or an asssociative array
intersect([[76,80,11,31,34,82,100], [13,31,66,43,73,100,73,10]])
will give [31,100]
anjanesh / IFSC.php
Last active Feb 6, 2020
multi-query select via mysqli
View IFSC.php
$mysqli = new mysqli("localhost", "username", "password", "data");
if (mysqli_connect_errno())
die("Connect failed: ".mysqli_connect_error());
$sql1 = "SELECT i1.`Name`, i1.`Branch`, i1.`IFSC`, i1.`Address`, i1.`Contact`
FROM `ifsc1` i1
WHERE i1.`Branch` LIKE '%sreekariyam%' OR i1.`Address` LIKE '%sreekariyam%'