首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > PHP > PHP autodb

PHP autodb

  • 资源大小:13.99 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: PHPautodb

资 源 简 介

Provides an object-oriented way to retrieve data from a mysql database and provides active record functionality. Database inputs are automatically escaped and all field and table names are auto-backticked (both are optional). See example.php for example usage and example.Class.php for an example of extending AutoDB into a customised model. I.e. $table = new AutoDB("my_table");$name = "%bob%";$results = $table->Select("ID, Name")->Like("Name",$name)->Get();//Produces: Select `ID`, `Name` From `my_table` Where `Name` Like "%bob%"if ($results == False){ echo "None Found";}else{ foreach($results as $record) { echo "ID: $record->ID, Name: $record->Name"; $record->Name = "bob"; } $results->Save(); //Save

文 件 列 表

AutoDB.php
AutoDBRecord.php
AutoDBResultSet.php
Database.php
example.Class.php
example.php
example2.Class.php

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.291208s