狮子座男

导航

上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页

2014年9月3日 #

PHP 写文件的例子

摘要: $contents = "All the content"; $dir = 'c:'; $file_path = $dir . "\\content.txt"; if(is_writable($file_path)) { file_put_contents($file_path , $con... 阅读全文

posted @ 2014-09-03 11:34 狮子座男 阅读(156) 评论(0) 推荐(0) 编辑

2014年8月14日 #

SQL 创建联合主键Table

摘要: CREATE TABLE [User_Instance]( [IntanceID] [int] NOT NULL, [StaffID] [char](10) NOT NULL) ON [PRIMARY]GOSET ANSI_PADDING OFFGOALTER TABLE [[User_... 阅读全文

posted @ 2014-08-14 17:12 狮子座男 阅读(902) 评论(0) 推荐(0) 编辑

SQL数据库中去掉字段中所有的回车和换行

摘要: update Approver set StaffID=replace(replace(StaffID,char(10),''),char(13),'') 阅读全文

posted @ 2014-08-14 14:27 狮子座男 阅读(1796) 评论(0) 推荐(0) 编辑

2014年7月25日 #

PDO beginTransaction (),exec(),commit ()

摘要: $dsn = 'sqlsrv:server=.\SQLExpress;Database=thinkphp'; $user = 'admin'; $password = 'pass1234'; try { $conn = new PDO($dsn, $user,... 阅读全文

posted @ 2014-07-25 14:17 狮子座男 阅读(487) 评论(0) 推荐(0) 编辑

2014年7月24日 #

PHP连接SQLServer2012两例

摘要: 首先放上PHP连接SQLServer的驱动下载地址http://php.net/manual/zh/ref.pdo-sqlsrv.php另外PHP for IIS管理工具 大家可以自己搜索一下 很久以前下的。现在忘记地址了。PHPManagerForIIS-1.1.2-x64.msi第一个是比较基础... 阅读全文

posted @ 2014-07-24 17:18 狮子座男 阅读(1605) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页