51CTO博客开发李晨光原创技术博客钟泽锋
第39例php生成不重复随机数<?phpheader("Content-type:text/html;charset=utf-8");$num=5;//要生产多少个随机数$start=0;$end=100;$connt=0;while($connt<$num) { $a[]=rand($start,$end);//产
第36例:使用分支语句加载不同网页主体<div id="header"><!--页面导航条--> <ul> <li><a href="?id=shop1">基本商品</a></li
第31例用户输入日期查询备忘录<?phpheader("Content-Type:text/html;charset=utf-8");?><form action="index.php" method="post"> <b>输入日期:</b><br /> &n
第26例会员信息分页显示conn.php页面:<?phpheader("Content-Type:text/html;charset=utf-8");mysql_connect("localhost","root","") or die("数据库连接有误!");mysql_select_db("student") or die("数据库选择有误!");mysql_query("set nam
第21例check.php页面:<?php//图片上传到服务器function fileext($filename) { return substr(strrchr($filename,'.'),1); //获取扩展名 }functi
第16例:<!--在网页主体中动态却换内容 --><title>文件引用</title><div style="color: red;"> <center> <a href="index.ph
第11例index.php页面:<form name="myform" accept="date.php" method="post"> 年龄计算器<br /> 出生年份:<input type="text" name="year" value=""/><br /> 出生月份:<
第6列<?phpecho "index.php<br><br>";echo "_FILE_:"._FILE_."<br>";echo "request_uti:".$_SERVER["request_urt"]."<br>";echo "script_name:".$_SERVER["script_name"]."<br>";ech
第一例<?php$s_html="<b>文字加粗it1994.cn</b>";echo $s_html;?>第二例<?php$s_javascript=<<<start<script type="text/javascript"> alert("it1994.cn");</s
Hypertext preprocessor 超文本预处理语言 Define 定义 Undefined 未定义的 Constant 常量 Variable 变量 Global 全球的、总体的 static &
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号