Download the PHP package devnull-ir/db-php without Composer
On this page you can find all versions of the php package devnull-ir/db-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package db-php
DB-php
Free Functions To Connect To The Database ( Mysql ) For Php Programmers
This Version : 5.0
connect to database
connect(string $dbname,string $username_db,string $password_db,string $host = 'localhost');
This Function :
class
- Php :
SQL Select Examples
-
SQL
- PHP :
OR
-
PHP :
- execute :
-
SQL
- PHP
SQL LIKE Examples
-
SQL
- PHP
This Update : 2.0
OR
-
SQL:
- PHP:
OR
-
SQL:
- PHP
MIN() Example
-
SQL
- PHP
SQL INNER JOIN Example
This section will be updated later
-
SQL
- PHP
SQL insert Example
-
SQL :
-
php :
- execute => false or true
query
insert('table',['one'=>'one','tow'=>'tow','there'=>'there']);
:
The content is then filled with prepare and bindValue
SQL delete data
deleted(string $table ,$where = "None",string $other = null);
-
SQL:
- PHP:
SQL update Example
-
SQL:
- PHP :
execute : false or true If execute is equal to false, it means that the update has not been done
SQL Created New Table
table(string $table,$column);
-
SQL:
- php :
execute => false or true
SQL Set unique column
unique(string $table,$column);
-
SQL :
- php:
SQL Set primary Key
primary(string $table,$column);
-
SQL:
- php :
Drop Table & column Exsample
drop($table,array $columns = []);
-
SQL Drop column:
-
PHP Drop column:
-
SQL Drop Table
- PHP Drop Table :
Set AUTO_INCREMENT
autoIncrement(string $table, string $column);
Sql :
ALTER TABLE
TableNabeCHANGE
columnName`columnName
BIGINT NOT NULL AUTO_INCREMENT;`
PHP:
PHP Classes:
Update version 3.5
Where
- select
- update
- like
- delete
Description
- If you enter another presentation in the presentation, you can (mandatory) send three values to the second presentation
- First value (first parameter): The name of the column in the table specified in the connect function
- Second value (second parameter): Enter the type Operators to check
- Third value (third parameter): value to check
All versions of db-php with dependencies
ext-pdo Version *