页面载入中,请稍后...

现在的位置: 首页

安装linux之前

发表于564 天前 linux  暂无评论
安装linux之前

在您开始安装Linux之前,先对您的系统有以下了解:

  电脑内是否已安装有其他操作系统,是否要让Linux与原有的操作系统并存。

阅读全文

mysql在PHP中的错误

发表于564 天前 database  暂无评论
mysql在PHP中的错误

在php的实际应用中,肯定会因为mysql与php应用时产生错误。

阅读全文

smarty扩展

发表于564 天前 smarty, 老张的碎嘴  评论数2
smarty扩展

为了避免重复地配置路径,可以在一个smarty文件里配置扩展类,和初始化你的smarty环境。
我们创建一个目录 “/php/includes/guestbook/” 建立一个文件”setup.php”
同样先设置好smarty路径。

/php/includes/guestbook/setup.php

阅读全文

PHP中获取mysql的数据库信息

发表于565 天前 database  暂无评论
PHP中获取mysql的数据库信息

在PHP页面中实现对数据库的操作是通过表单实现的,如何在php中获取mysql的数据库信息呢?

阅读全文

如何安装smarty

发表于566 天前 老张的碎嘴  暂无评论
如何安装smarty

安装http://www.smarty.net/ 官网发行版解压压缩包到web 文档根目录之外的某个位置。

因为需要将smarty 类库包含到应用程序中,所以要确保此位置包含在PHP 的include _ path 配置指令中。类文件为smarty.class.php,位于Smarty 目录libs/。

阅读全文

mysql的查询结果

发表于566 天前 database  暂无评论
mysql的查询结果

执行mysql语句之后会返回一个资源类型的变量用来存储mysql的查询结果。
mysql的查询结果可以使用mysql_numrows函数实现,语法如下:

阅读全文

Smaty的特点

发表于566 天前 smarty, 老张的碎嘴  暂无评论
Smaty的特点

Some of Smarty’s features:

It is extremely fast.

It is efficient since the PHP parser does the dirty work.

阅读全文

执行mysql语句

发表于567 天前 database  评论数4
执行mysql语句

不论是在mysql中怎么折腾这些数据表中的数据,在连接mysql数据库之后所执行的这些动作,统统都是在执行mysql语句。

php中通过mysql_query函数执行mysql语句,语法如下:

阅读全文

smarty的不足

发表于567 天前 smarty, 老张的碎嘴  暂无评论
smarty的不足

Now for a short word on what Smarty does NOT do. Smarty does not attempt to completely separate logic from the templates. There is no problem with logic in your templates under the condition that this logic is strictly for presentation. A word of advice: keep application logic out of the templates, and presentation logic out of the application. This will most definately keep things manageable and scalable for the foreseeable future.

阅读全文

选择mysql数据库

发表于568 天前 database  暂无评论
选择mysql数据库

在php中使用sql语言选择mysql数据库之后,我们需要的就是连接mysql数据库了。

php中连接mysql数据库的函数为:mysql_select_db,语法如下:

阅读全文

网站地图

不想听你唠叨×