Giter VIP home page Giter VIP logo

mysqlimpulse's Introduction

MySqlImpulse

This is a PHP application to access the MySqlDataBase having inbuilt safety check for sql injection and cache management

Main Class Description:

CLASS TO ACCESS THE DATABASE.THE STEPS OF USING THIS CLASS IS DESCRIBED BELOW

1>DEFINE THE DATABASE DETAILS IN THE DATABASE.PHP FILE,WHICH BASICALLY CONTAINS SOME CONSTANTS VALUS LIKE DATABASE NAME,ADDRESS,DATABASE USER NAME AND PASSWORD

2>INCLUDE THE MYSQLIMPULSE FOLDER IN YOUR PROJECT WHERE YOU NEED TO ACCESS THE DATABASE

3>CREATE AN INSTANCE OF THE CLASS MYSQLIMPULSE AS FOLLOWS $_MYSQLIMPULSE=new MySqlImpulse();

4>EXAMPLE OF INSERT QUERY $QUERY="INSERT INTO TBL VALUES('?',?,'?')"; $DATAARRAY=ARRAY('AAA',10,'BB'); $RESULT=$_MYSQLIMPULSE->executeQuery($QUERY,$DATAARRY); RESULT IS A BOOLEAN RESULT, THE DATA WILL BE AUTOMETICALLY CHECKED FOR SQL INJECTION ALL DATA THAT CONTAINS HTML TAGS WILL BE REMOVED,TO PREVENT THIS USE executeDirectQuery($QUERY,$DATAARRAY) INSTEAD OF executeQuery($QUERY,$DATAARRAY)

5>EXAMPLE OF SELECT QUERY $QUERY="SELECT FROM TBL WHERE ID='?'"; $DATAARRAY=array("XX"); $RESULT=$_MYSQLIMPULSE->executeQuery($QUERY,$DATAARRY); THE OUT PUT WILL BE A MULTI DIMENTIONAL ARRAY AS FOLLOWS $RESULT[0] WILL BE THE FIRST ROW FETCHED FROM THE DATABASE $RESULT[1] WILL BE THE SECOND ROW FETCHED FROM THE DATABASE

YOU CAN USE THE COUNT FUNCTION OF ARRAY IN PHP TO GET THE NUMBER OF ROWS IN THE OUTPUT RESULT

SPECIAL FEATURES OF THIS CLASS 1>YOU DO NOT NEED TO TAKE HEADECH OF SQL INJECTION,THERE ARE INBUILT FUNCTION IN THE CLASS TO PREVENT SQL INJECTION 2>YOU DONOT NEED TO CREATE OR DESTROY DATABASE CONNECTION,THIS CLASS WILL AUTOMETICALLY CREATE CONNECTION AND DESTRY THEM AS SOON AS REQURMENT FINISHED

mysqlimpulse's People

Contributors

sguha-cn avatar

Stargazers

Sahasrangshu Guha avatar

Watchers

James Cloos avatar Sahasrangshu Guha avatar  avatar

Forkers

mdshahroufbd

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.