Ana Sayfa / Kod ve Scriptler / Automatic Class Generator In PHP With PDO

Automatic Class Generator In PHP With PDO

PDO kullanarak veritabanı bağlantısı için PHP'de otomatik sınıf oluşturucu

  • Yayın tarihi12 Ağustos 2020
  • Nerede çalışırPHP 7.0, PHP 7.1, PHP 7.2, PHP 7.3
  • VeritabanıMySQL 4.x, MySQL 5.x
  • Paket içeriği.php, .css, JavaScript .js
  • Son güncelleme12 Ağustos 2020
  • Canlı demoVar
Automatic Class Generator In PHP With PDO

Overview

Automatically create classes in PHP to connect to the database using PDO. The script creates a class to perform the main functions for manipulating data in the db with the functions of inserting, updating, searching and deleting.

Features

These are the functions that the script generates for earch table of database.

getList() - get all rows of the table. loadById($id) - load into object the data from database. insert() - Insert data into database table insertReturningID() - Insert data into database table and return the inserted id. update($id) Update the data from database table. delete($id) Update the data from database table.

Requirements

PHP version 7.0 or higher;

MySQL 4.x or MySQL 5.x