Skip to content

Instantly share code, notes, and snippets.

View akash-coded's full-sized avatar
🎯
Focusing

Akash Das akash-coded

🎯
Focusing
View GitHub Profile
@akash-coded
akash-coded / phpMyAdmin_Warning.md
Created January 23, 2020 18:12
Fix Bug Phpmyadmin [sql.lib.php] + Php7.2 + - Warnings

Warning in ./libraries/sql.lib.php#601 (phpMyAdmin)

count(): Parameter must be an array or an object that implements Countable

1_VXjj4lPqxoNqHqt7UOIn6A

It is because of phpmyadmin’s library try to counting some parameter but got wrong a code. So by looking at line 613, we find:

1_TCanXuY2VCA2lVoSVJlacQ

@akash-coded
akash-coded / __call
Last active January 23, 2020 18:18
Some Python Magic Methods
class Animal {
}
class Penguin extends Animal {
public function __construct($id) {
$this->getPenguinFromDb($id);
}
public function getPenguinFromDb($id) {
// elegant and robust database code goes here