Giter Site home page Giter Site logo

mysql2mysqli's Introduction

MySQL to MySQLi

PHP MySQL'den MySQLi

Bu kod yardımı ile, mysql komutlarının, mysqli komutları ile çağrılması işlemi yapılır.

PHP 7 ile birlikte mysql_* kütüphanesinin kullanımı devre dışı bırakılmıştır.

Eğer, PHP 7 yüklü bir sunucuda mysql_* kütüphanesi komutları ile yazılmış bir projeniz varsa, bu proje yardımı ile kodunuzu sadece aşağıdaki satırları veritabanı bağlantısını tanımladığınız yerin başına yazarak kullanabileceksiniz.

Kullanım Örneği

mysql_connect komutunun bulunduğu dosyanın başına şu kodu ekleyin:

if( !extension_loaded('mysql') ){
    require_once("mysql2i.class.php");
}

Kaynak Kod: https://www.phpclasses.org/mydql2i

PHP MySQL to MySQLi

Replace mysql functions using the mysqli extension

This class can replace the mysql functions using the mysqli extension.

It provides equivalent functions that perform the same operations as the mysql extension when this is not available.

An auxiliary script is provided to provide global functions with the same names and parameters as mysql extension functions except that they call the class to use the mysqli extension.

Usage Sample

Add this code at the top of file before use mysql_connect command:

if( !extension_loaded('mysql') ){
    require_once("mysql2i.class.php");
}

Original Source Code: https://www.phpclasses.org/mydql2i

mysql2mysqli's People

Contributors

nuriakman avatar

Stargazers

Exa Legacy avatar

Watchers

 avatar

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.