【文件属性】:
文件名称:kopdo:PHP中的PDO包装器
文件大小:2KB
文件格式:ZIP
更新时间:2021-05-18 12:31:14
PHP
连接
<?php
KOPDO :: connect ( DB_STRING , DB_USER , DB_PASS );
插入新行
<?php
$ id = KOPDO :: insert ( 'test' , [
'name' => 'Flavio' ,
'surname' => 'Kopiro' ,
'friends' => [ 'A' , 'B' , 'C' ]
'phones' => [
'ita' => '+391231231234' ,
'usa' => '+02998898' ,
'uk' => [ '09956' , '923752' ]
]
]);
作为数组/对象传递的数据将在数据库中自动序列化。
选择行
<?php
KOPDO :: all ( 'test' , 'name, surname, friends, phone' );
要求时
【文件预览】:
kopdo-master
----KOPDO.php(4KB)
----README.md(1KB)
----.gitignore(9B)