Coder Social home page Coder Social logo

php-database-class's Introduction

image

๐Ÿ‘‹๐Ÿผ ็งใฎGITHUBใธใ‚ˆใ†ใ“ใ

Welcome to my GitHub profile. Feel free to wander around but beware, there are a lot of useless and unmaintained projects flying around :) More to come, probably.

  • ๐Ÿ‘จโ€๐Ÿ’ป Frontend-Developer
  • โœ๏ธ Read about me on makkusu.dev
  • ๐ŸŽฒ Interested in speedcubing, magic and a lot of other things
  • ๐ŸŒƒ I like watching nightskies
  • ๐ŸŽŒ Learning Japanese since '20

๐Ÿงฉ My Eleventy Plugins

Name Description Package
eleventy-plugin-readingtime Adds a filter to display average post reading time depending on the word count npm
eleventy-plugin-furigana Adds furigana to kanji npm
eleventy-plugin-index Adds a table of contents to your post coming soon

๐Ÿš€ Github Stats

GitHub WidgetBox

Anurag's GitHub stats Top Langs

GitHub Streak

php-database-class's People

Contributors

myxotod avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

joberrr dflick

php-database-class's Issues

[FIX] SQL CONNECTION CLOSE BUG

There's a small bug with closing connection (__destruct() function). When you close connection by $db -> __destruct();, you can get error like:

mysql_close(): 6 is not a valid MySQL-Link resource in

to fix it, replace this function:
public function __destruct() {
if ($this->connected) {
mysql_close($this->connection);
}
}

to this

public function __destruct() {
if ($this->connected) {
$this->connected = false;
mysql_close($this->connection);
}
}

[FIX]Query count

If you want to somewhere echo, how many queries is running in this page, then $query_counter should be public, not private. So, next fix from me:

This:
private $query_counter = 0;

edit as this:
public $query_counter = 0;

Now, you can echo, how many queries are running in the page by
echo $db->query_counter;

Otherwise, there aren't any necessary from counting queries.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.