All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
网页制作知识:XHTML 和 DOCTYPE 切换_[Html教程]
ASP.NET2.0登陆控件的使用(常见的三种方法)_[Asp.Net教程]
PHP实例:用PHP实现广告轮播_[PHP教程]
Call,to,undefined,function,curl_init()_php资料_编程技术
visual c++中制作ActiveX控件的方法
ASP.NET中url传递中文的解决方案_[Asp.Net教程]
用AjaxPro实现无刷新翻页效果及数据库分页技术介绍_[AJAX教程]
delphi在文本文件中添加一行
ASP.NET的Request对象的属性介绍_[Asp.Net教程]
ASP.NET,3.5,扩展(预览版)介绍、下载和在线教程_[Asp.Net教程]
Reading number is top 10 pictures
Wild animals melee moment of life and death1
The terra-cotta warriors3
Forced sex girl living abroad2
到底是谁撞谁呀?
Sexy women in 2013--2
这只猪到底犯了什么错?
Sora aoi on twitter5
六种更聪明的工作方法
2012 national geographic daily picture8
职场回春术
Download software ranking
Boxer vs Yellow3
Ashlynn Video2
WebService在.NET中的实战应用教学视频 → 第2集
Tram sex maniac 2 (H) rar bag4
尖东毒玫瑰B
Unix video tutorial17
dreamweaver8中文版
1400篇各类破解文章
Eclipse 4.2.2 For Win32
linux高级编程
归海一刀 published in(发表于) 2014/2/17 7:37:38 Edit(编辑)
PHP日常开发小技巧_[PHP教程]

PHP日常开发小技巧_[PHP教程]

PHP日常开发小技巧_[PHP教程]
PHP批量取得checkbox的值
1、命名

2、使用
当计划当作sql指令的一部分时:如果参与控制的字段是数值型的,则
if(! empty($_POST[’checkbox’])) {
$expr = join(",", $_POST[’checkbox’]);
$sql = "select * from tbl_name where field in ($expr)";
}
如果参与控制的字段是数值型的,则
if(! empty($_POST[’checkbox’])) {
$expr = "’".join("’,’", $_POST[’checkbox’]).".";
$sql = "select * from tbl_name where field in ($expr)";
}

PHP判断Form表单是否提交
$action=$HTTP_POST_VARS["Button1"];
if($action=="提交")
{
//执行表单操作
}
else
{
//读取默认值
}

PHP 获取字符串长度
strlen($myrow[1])

PHP Url转向
Header("Location: ".$_SERVER["HTTP_REFERER"]);

PHP超全局对象
$a = 1;
$b = 2;
function Sum()
{
$GLOBALS["b"] = $GLOBALS["a"] $GLOBALS["b"];
}
Sum();
echo $b;
?>

PHP 表单取值
如果 mothod="get" 就用 $_GET["test"] 代替$test
如果 mothod="post" 就用 $_POST["test"] 代替$test

PHP取得当前IP


PHP 取得当前时间
echo date("Y-m-d G:i:s");
?>
date("Y年m月d日")
Date ("Y-n-j")


添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.