易截截图软件、单文件、免安装、纯绿色、仅160KB

php 连接数据库 , 插入记录

         $username = "root";
         $password = "123";
         // 建立连接
         mysql_connect('localhost', $username, $password);
         // 选择连接数据库  
         mysql_select_db("test");
        // 插入数据
        mysql_query("insert into tb values (12)"); // 插入数据


相关文档:

php variable circular reference

 
Php Variable Circular References

Circular-references has been a long outstanding issue with PHP. They are
caused by the fact that PHP uses a reference counted memory allocation
mechanism for its internal variables. This causes problems for longer
running scripts (such as an Applicatio ......

PHP的cURL库功能简介:抓取网页,POST数据及其他

使用PHP的cURL库可以简单和有效地去抓网页。你只需要运行一个脚本,然后分析一下你所抓取的网页,然后就可以以程序的方式得到你想要的数据了。无论
是你想从从一个链接上取部分数据,或是取一个XML文件并把其导入数据库,那怕就是简单的获取网页内容,cURL
是一个功能强大的PHP库。本文主要讲述如果使用这个PHP库。
启用 ......

php常用类整理

php常用类整理
时间:2009-12-19 20:45 来源:人力方 作者:syuanq 点击:548
在实际开发过程会经常会遇到一些重复的操作,如果每次都要自己去实现这无疑加重了自己的工作量,下面对一些可能经常用到的类做个整理:
图表库
下面的类库可以让你很简单就能创建复杂的图表和图片。当然,它们需要GD库的支持 ......

php中的字符串连接

// 定义一个新变量
$test = "hello";
//  .  字符串连接符
echo $test.".world"     // hello.world
 echo "$test.world"     // "" 中的变量将被解析成相应的值
             &nbs ......

php的Login

login。php听说要用个第三方页面来实现跳转。说是为了安全方面的考虑。我再想想吧~
先把代码贴出来
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta h ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号