上一篇中,简单写了个Input.php , 但生日那一栏要自己手动输入写,比较麻烦,所以这里用到一个JS文件,可以选择日期
点击下载这个js文件
在Input.php文件最顶端引用这个JS文件
<script type="text/javascript" src="calenderJS.js"></script>
将生日的输入框改成
<input name="birthday" type="text" id="birthday" onfocus="HS_setDate(this)" />
即完成调用,可以方便地选择日期。
Index.php 中只能显示数据,无法进行编辑、删除等操作,很不方便,所以在表格代码最后一行加入
<th bgcolor="#CCCCCC" scope="col">管理</th>
循环中(自动生成表格的代码)加入
<td><a href="Edit.php?id=<?php echo $row[0];?>" >编辑</a>
<a href="Delete.php?id=<?php echo $row[0];?>" >删除</a></td>
现在实现删除功能:Delete.php
<!-- Delete.php -->
<?php
$id = $_GET['id'];
$sql = "DELETE from `AddrList` WHERE Id=$id";
require('conn.php');
if($result)
{
?>
<script type="text/ ......
代码如下:
<?php
/* 网站验证码程序
* 运行环境: PHP5.0.18 下调试通过
* 需要 gd2 图形库支持(PHP.INI中 php_gd2.dll开启)
* 文件名: showimg.php
* 作者: 17php.com
* Date: 2007.03
* 技术支持: www.17php.com
*/
//随机生成一个4位数的数字验证码
$num="";
for($i=0;$i<4;$i++){
$num .= rand(0,9);
}
......
方法1:error_reporting (E_ALL ^ E_WARNING);
session_start();
方法2:error_reporting (E_ALL & ~E_NOTICE);
if (!isset($_SESSION)) {
session_start();
};
方法3:改php.ini 中error_reporting ......
代码interface StringSearchable
{
public function search($substring, $buffer);
}
class BoyerMooreStringSearch implements StringSearchable
{
public $substring = null;
public $buffer = '';
public $jumpTable = array();
protected $results = array();
public function __construct()
{
}
public function __destruct()
{
}
public function search($substring, $buffer)
{
$this->results = array( ......
在网上看了很多关于windows2003+iis6+php+mysql 服务器配置的文章,大体上都是互相抄袭,不过一些公共的信息还是很正确的,但是针对一些特别的机器或者因为个人不同的配置总不能按照文章的内容操作成功,下面说一种较为简单的操作方法,步骤如下:
1.iis安装(略)
2.下载AppServ并安装
3.在c:\建php5文件夹,然后再php5文件夹下建php.ini文件(就是从AppServ|php5下拷贝过来)
4.修改php.ini,找到 register_globals = Off 改为 register_globals = On
找到 extension_dir = "./" 改为 extension_dir = "F:\php\ext"
找到
;extension=php_dbase.dll
;extension=php_gd2.dll (这是用来支持GD库的)
;extension=php_mbstring.dll (这不选一般用PHPMYADMIN会出红色提示,故必选)
;extension=php_mcrypt.dll
;extension=php_mssql.dll (这个是用来支持MSSQL的,可选)
;extension=php_mysql.dll (这个是用来支持MYSQL的,要支持MYSQL必选)
将这些文字前面的";"去掉,其他的你需要的也可以去掉前面的;然后关闭保存该文件。
5.设置iis,让其支持php,
1)打开控制面板→管理工具→Intern ......
在网上看了很多关于windows2003+iis6+php+mysql 服务器配置的文章,大体上都是互相抄袭,不过一些公共的信息还是很正确的,但是针对一些特别的机器或者因为个人不同的配置总不能按照文章的内容操作成功,下面说一种较为简单的操作方法,步骤如下:
1.iis安装(略)
2.下载AppServ并安装
3.在c:\建php5文件夹,然后再php5文件夹下建php.ini文件(就是从AppServ|php5下拷贝过来)
4.修改php.ini,找到 register_globals = Off 改为 register_globals = On
找到 extension_dir = "./" 改为 extension_dir = "F:\php\ext"
找到
;extension=php_dbase.dll
;extension=php_gd2.dll (这是用来支持GD库的)
;extension=php_mbstring.dll (这不选一般用PHPMYADMIN会出红色提示,故必选)
;extension=php_mcrypt.dll
;extension=php_mssql.dll (这个是用来支持MSSQL的,可选)
;extension=php_mysql.dll (这个是用来支持MYSQL的,要支持MYSQL必选)
将这些文字前面的";"去掉,其他的你需要的也可以去掉前面的;然后关闭保存该文件。
5.设置iis,让其支持php,
1)打开控制面板→管理工具→Intern ......
搞了很久。。终于发现原来是权限问题。。
2行命令搞定
grant all privileges on rogue.* to admin@localhost identified by 'admin' with grant option
grant all privileges on rogue.* to admin@'%' identified by 'admin' with grant option
经典了。。。
魔力私服网页端搞定咯~~ ......
搞了很久。。终于发现原来是权限问题。。
2行命令搞定
grant all privileges on rogue.* to admin@localhost identified by 'admin' with grant option
grant all privileges on rogue.* to admin@'%' identified by 'admin' with grant option
经典了。。。
魔力私服网页端搞定咯~~ ......
搞了很久。。终于发现原来是权限问题。。
2行命令搞定
grant all privileges on rogue.* to admin@localhost identified by 'admin' with grant option
grant all privileges on rogue.* to admin@'%' identified by 'admin' with grant option
经典了。。。
魔力私服网页端搞定咯~~ ......