- 博客(165)
- 资源 (11)
- 收藏
- 关注
原创 jdbc数据库操作封装
package com.conn;import com.conn.po.User;import org.junit.Test;import java.io.IOException;import java.io.InputStream;import java.lang.reflect.Field;import java.sql.*;import java.
2017-12-04 15:51:37 216
原创 php事务处理.php
include_once("incs/conn.php"); #启动事务 $sql="begin tran"; mssql_query($sql); $flag=true; #事务处理状态 $sql="insert into test(sname) values('Admin1')"; @mssql_query($sql) or die($flag=false);
2014-03-13 18:22:06 858
原创 msdb被置疑修改语句.txt
USE MASTERGOSP_CONFIGURE 'ALLOW UPDATES',1 RECONFIGURE WITH OVERRIDEGOUPDATE SYSDATABASES SET STATUS =32768 WHERE NAME='msdb'Gosp_dboption 'msdb', 'single user', 'true'GoDBCC CHECKDB
2014-03-13 18:20:36 549
原创 时间戳和时间的转换
'参数:strTime:要转换的时间;intTimeZone:该时间对应的时区 '返回值:strTime相对于1970年1月1日午夜0点经过的秒数 '示例:ToUnixTime("2008-5-23 10:51:0", +8),返回值为1211511060 Function ToUnixTime(strTime, intTimeZone)
2014-03-13 18:19:09 610
原创 银行时间计算
VERSION 5.00Begin VB.Form main BackColor = &H00FFFFC0& BorderStyle = 1 'Fixed Single Caption = "天数计算" ClientHeight = 4155 ClientLeft = 45
2014-03-13 18:15:04 595
原创 定时刷网络页面
VERSION 5.00Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0"; "shdocvw.dll"Begin VB.Form frmMain BorderStyle = 1 'Fixed Single Caption = "我的浏览器" ClientHeight
2014-03-13 18:14:04 478
原创 斐波那契数列数列的实现
VERSION 5.00Begin VB.Form Form1 Caption = "Form1" ClientHeight = 5385 ClientLeft = 60 ClientTop = 450 ClientWidth = 10755 LinkTopic
2014-03-13 18:13:02 501
原创 java进度条
这本是一个骗别人维护的程序。package com.gzxh.util;import java.awt.*;import java.awt.event.*;import java.util.Calendar;import javax.swing.*;public class OptFram extends JFrame implements Runnable{ pr
2012-12-21 22:22:33 489
原创 定时程序
<br />VERSION 5.00 Begin VB.Form frmTimer ClientHeight = 3090 ClientLeft = 60 ClientTop = 450 ClientWidth = 6150 Icon = "frmTimer.frx":0000 LinkTopic = "Form1" MaxButton = 0 'False MinButton = 0 'False ScaleHeight = 3090 ScaleWidth = 6150 StartUpPosition =
2010-10-29 13:27:00 378
原创 vb自动关机程序
Private Declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As LongPrivate Const EWX_LOGOFF = 0Private Const EWX_SHUTDOWN = 1Private Const EWX_REBOOT = 2Privat
2010-05-26 14:08:00 455
原创 vb自动关机程序
Private Declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As LongPrivate Const EWX_LOGOFF = 0Private Const EWX_SHUTDOWN = 1Private Const EWX_REBOOT = 2Privat
2010-05-26 14:08:00 673
原创 全面的文件操作类
import java.io.*;public abstract class FileOperation { /* * description :create file * parmeter:file name * return boolean */ public static boolean createFile(String fileStr) { File file = n
2010-01-18 10:12:00 341
原创 PHP再线投票updatenum.php
include_once("connect.php"); try { if(!isset($_REQUEST[cid])) { echo"没有选取要的选项返回"; exit; } $sql = "update content set num=num+1 where cid=".$_REQUEST[cid]; $connect-
2008-01-18 14:03:00 557
原创 PHP再线投票myfunction.php
function get100($totalnum,$num) { if($totalnum == 0) { return "0%"; }else { return round((($num/$totalnum)*100),2)."%"; } } function getwidth($per) { return str_re
2008-01-18 14:02:00 424
原创 PHP再线投票ajax.html
http://www.w3.org/1999/xhtml">无标题文档 var xmlHttp; function createXMR() { if(window.ActiveXObject) { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); }else if(window.XMLHttpRequest) {
2008-01-18 14:01:00 535
原创 PHP再线投票connect.php
/* **数据库连接 */ $connect = new PDO ("mysql:host=localhost;dbname=online","root","960515");?>
2008-01-18 14:00:00 392
原创 php:分页
function fenye($total,$pagesize) { if($total % $pagesize == 0) { return $total/ $pagesize; }else { if(($total / $pagesize)*$pagesize > $total ) { retur
2008-01-16 10:56:00 436
转载 超简单的组合排列问题
#include "stdio.h"#include"stdlib.h"int count = 0;int size(char *a){ int i=0; while(a[i]!=/0){ i++; } return i;}void deal(char *a, int m, int n) { int i; char t; if (mdeal(a, m+1, n); for (i=m+1;it
2007-12-10 12:35:00 686
原创 重新组合两个数组,使得他们的元素差最小
#include "stdio.h"#include "time.h"#include "stdlib.h"#define size 5struct plist{ int id; int status; int num; struct plist *ar[size*2-1];};int isExists(struct plist *sign,struct plist **soure);in
2007-12-06 16:14:00 669
原创 给一组数据找罗列出所有的排列(1,2,3)==>1,2,3;2,1,3;1,3,2;3,2,1;3,1,2
#include"stdlib.h"#include"stdio.h"#define size 5struct plist{ int status; int num; struct plist *ar[size*2-1];};int count = 0;void execute(struct plist **p,int *temp,int layer){ int i = 0,ii = 0; i
2007-12-06 15:28:00 691
原创 UDP_program
package comm;/** * @docRoot:UDP程序 * @author gsp * @date:2007-09-18 * @telephone:80889574 */import java.net.*;import java.awt.*;import java.awt.event.*;import java.util.*;import javax.swing.*;public cl
2007-09-18 13:14:00 489
原创 ServerSocket:Thread
package comm;/** * @docRoot:服务器通信的线程 * @author:jingshaoping * @date:2007-9-17 */public class MyThread extends Thread { /**接收的消息通道*/ private Server_Socket server_Socket; /**构造方法**/ public MyThread(Se
2007-09-18 09:44:00 1924
原创 ServerSocket:Socket & ServerSocket
package comm;/** * @docRoot:socket客户端程序 * @author:jingshaoping * @date:2007-9-17 */import javax.swing.*;import java.net.*;import java.io.*;import java.awt.*;import java.awt.event.*;public class Server
2007-09-18 09:43:00 604
原创 Socket:Thread
package comm;/** * @docRoot:客户通信的线程 * @author:jingshaoping * @date:2007-9-17 */public class MyThread extends Thread { /**接收的消息通道*/ private Client_Socket client_socket; /**构造方法**/ public MyThread(Cli
2007-09-18 09:41:00 683
原创 Socket:client
package comm;/** * @docRoot:socket客户端程序 * @author:jingshaoping * @date:2007-9-17 */import javax.swing.*;import java.net.*;import java.io.*;import java.awt.*;import java.awt.event.*;public class Client
2007-09-18 09:40:00 740
原创 yongyouTest:javaPartment
package uitl;import java.io.*;import java.sql.*;public class DatabaseConnection { private Connection con=null; //private Statement psmt = null; //private ResultSet rs = null; private String url = "j
2007-06-14 16:53:00 878
原创 PraseMimeMessage
package javamailtest;import java.io.*;import java.text.*;import java.util.*;import javax.mail.*;import javax.mail.internet.*;public class PraseMimeMessage{ private MimeMessage mimeMessage = nu
2007-06-08 11:41:00 1200
原创 MailFetcher
package javamailtest;import java.io.IOException;import java.io.InputStream;import java.io.UnsupportedEncodingException;import javax.mail.BodyPart;import javax.mail.FetchProfile;import javax.mail.F
2007-06-08 11:36:00 657
原创 jspEmail:sendMailServlet
package javamailtest;import javax.servlet.*;import javax.servlet.http.*;import java.io.*;import java.util.*;import javax.mail.*;import javax.mail.internet.*;import javax.activation.*;import java.ut
2007-06-08 11:24:00 723
原创 jsp中调用存储过程:
create or replace procedure proce_test(a in varchar2,b in varchar2,c out varchar2)asbeginc:=a||b;end proce_test;/*///存储过程有两个输入一个输出参数Class.forName("oracle.jdbc.driver.OracleDriver").newInstance(); Conn
2007-06-08 11:21:00 1053
原创 jsp_project_/store//store/WebRoot/WEB-INF/web.xml
xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
2007-06-08 11:20:00 650
原创 jsp_project_/store//store/WebRoot/ViewMsg
String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> "> 登陆
2007-06-08 11:19:00 537
原创 jsp_project_/store//store/WebRoot/ReLogin
String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> "> 登陆
2007-06-08 11:18:00 617
原创 jsp_project_/store//store/WebRoot/Register
String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> "> 登陆 var
2007-06-08 11:17:00 644
原创 jsp_project_/store//store/WebRoot/RegisterFail
String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> "> 登陆
2007-06-08 11:17:00 435
原创 jsp_project_/store//store/WebRoot/Pmsg
String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> "> 登陆
2007-06-08 11:16:00 457
原创 jsp_project_/store//store/WebRoot/OrderList
String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> "> 登陆
2007-06-08 11:15:00 583
原创 jsp_project_/store//store/WebRoot/Order
String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> "> 登陆
2007-06-08 11:14:00 595
原创 jsp_project_/store//store/WebRoot/ModifyUserInfo
String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> "> 登陆
2007-06-08 11:13:00 637
原创 jsp_project_/store//store/WebRoot/MyStore
String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> "> 登陆 file:/
2007-06-08 11:13:00 548
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人