PHPLIB初试
来源:互联网 发布:mac os 10.8 iso下载 编辑:程序博客网 时间:2024/06/06 08:34
早上使用了下PHPLIB,从PHPE.NET下载的源码和使用手册. 看了以后受益匪浅.
-----------------db_mysql.inc 文件-----------------
class DB_Sql
var $Host = ""; 数据库主机名
var $Database = ""; 数据库名
var $User = ""; 用户名
var $Password = ""; 密码
套用下面的query方法来执行query语句.
function DB_Sql($query = "") {
$this->query($query);
}
类->query 的详细操作过程,query为空,没有connect时返回0,false
function query($Query_String) {
if ($Query_String == "")
return 0;
if (!$this->connect()) {
return 0;
};
if ($this->Query_ID) {
$this->free();
}
if ($this->Debug)
printf("Debug: query = %s<br>/n", $Query_String);
$this->Query_ID = @mysql_query($Query_String,$this->Link_ID);
$this->Row = 0;
$this->Errno = mysql_errno();
$this->Error = mysql_error();
if (!$this->Query_ID) {
$this->halt("Invalid SQL: ".$Query_String);
}
return $this->Query_ID;
}
-----------------------------------------------------------
- PHPLIB初试
- phplib
- PHPLIB Template
- phplib 使用
- PHPLIB TEMPLATE
- 初试
- 初试
- 初试
- 初试
- phplib模板体系介绍
- phplib模板的标准化?
- PHPLib Template笔记
- phplib template简明教程
- phplib类中文详解
- php、phplib编程 CSDN
- phplib-template模板技术
- phplib 模板类介绍
- phplib template 中文手册
- Linux下常用压缩格式的压缩与解压方法
- 领导者找到可以信赖的副手比什么都重要
- 程序员该做的事
- SQL2000下将数据库直接备份到网络上其他计算机硬盘的方法
- xp下装arcgis9
- PHPLIB初试
- 文件上传 [liulian720]
- constraint
- 利用curl来做http访问(支持session,cookie)
- 简单工厂设计模式-设计模式(1)
- 更改临时文件夹的路径
- MVC 基本知识
- 我的白痴主管
- 文件下载 [liulian720]