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

php的数据操作ui

 <?php
 
error_reporting(0);//7all,0no
ini_set('display_errors', '0');
function myerror($errno, $errstr, $errfile, $errline)
{
    echo "<BR>error type: [$errno] $errstr<br />\n";
    echo "in line $errline of file $errfile<BR>";
}
set_error_handler("myerror");
include("config.php");
    $link = mysql_connect($dbhost,$dbuser,$dbpass)
        or die("Could not connect : " . mysql_error());
    mysql_select_db($dbname) or die("Could not select database");
   
?>
<html>
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
//增加人名 insert into `address2` (`sname`) values('人名')
//修改 update `address2` set `sname`='人名' where id='23'
//查询所有的表名 SHOW   TABLES   from    u656b1_db
<form action="" method="post">
<textarea name="how" style="width:100%; height:100px;" onkeypress="if(event.keyCode == 10)submit.click();">
<?PHP
if (isset($_REQUEST["how"]))
{
   echo $_REQUEST["how"];
}
?>
</textarea><br>
<input name=ip value="<?PHP
if (isset($_REQUEST["ip"]))
{
   echo $_REQUEST["ip"];
}
?>">
<input type="submit" id="submit" value="提交">
</form>
<?php
function runsql()
{   
       if ($_POST["ip"] != "password")
       {
         echo '密码不正确.';
         return(0);   
       }
      
       $sql = $_POST["how"];
      
       if ( $sql == "")
   &


相关文档:

ubuntu 下 搭建 apache+php+mysql


#apt-get install apache2
//安装apahce2
#apt-get install php5
//安装php5
#apt-get install mysql-server
//安装mysql服务端
#apt-get install  mysql-myclient
//安装mysql的客户端
#apt-get install php-mysql
//安装php-mysql的连结
apache+php+mysql 环境已经搭建好了
将以下的服务重启一下
#/et ......

Guoqzhang_PHP 简易php framework

Guoqzhang_PHP 简易php framework    请多指点。
Guoqzhang_PHP V 1.0 的PHP开发框架,采用MVC设计模式,运用Smarty模板引擎术和MySQL数据库技术开发而成。
 设计到开发完成耗时20个工作日左右,时间短,可能存在一些bug,请大家指正.作者mail:guoqzhang@gmail.com
url:http://download.csdn ......

php显示服务器时间代码

<div id="time" align="center">time </div> 
<script language="javascript">
function time1()
{
var now,n,y,r,h,m,s;
now=new Date();
n = now.getYear();
y = now.getMonth()+1;
r = now.getDate();
h = now.getHours();
m =now.getMinutes();
s = now.getSeconds();
......

php时间格式化

日期格式化date()函数的格式化字符:  
  Y   年,4位数字  
  m   月,前面带0:"01"-"12"  
  d   月中的天  
  H   时,24时制  
  i   分  
  s   ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号