1)连接mysql<?php$con=mysql_connect("localhost","root","12345");if(!$con){ die(‘Couldnotconnect:‘.mysql_error());}mysql_close($con);?>2)phpmysql创建数据库和表<?php $con=mysql_connect("localhost","root","123456"); if(!$con){ die(‘Couldnotconnect:‘..
分类:
数据库 时间:
2014-11-25 11:03:42
阅读次数:
277
它的根节点支持申明???org.mortbay.jetty.Server?????或???????org.mortbay.jetty.webapp.WebAppContext 两种:? 1、 <?xml?version="1.0"?>
<!DOCTYPE?Configure?PUBLIC?"-//Mort?Bay?Con...
分类:
Web程序 时间:
2014-11-25 11:03:12
阅读次数:
179
1)连接mysql<?php$con=mysql_connect("localhost","root","12345");if(!$con){die(‘Couldnotconnect:‘.mysql_error());}mysql_close($con);?>2)phpmysql创建数据库和表<?php$con=mysql_connect("localhost","root","123456");if(!$con){die(‘Couldnotconnect:‘.mysq..
分类:
数据库 时间:
2014-11-25 11:01:35
阅读次数:
155
1.用Image对象的src属性var img = new Image();img.src = "http://www.xxx.con/?data1=1";创建Image对象,通过其src属性可以向xxx地址传递数据,后台php可以通过GET方法获取src属性中“?”以后的数据。2.script标签...
分类:
Web程序 时间:
2014-11-24 17:01:28
阅读次数:
148
C#中,获取容器中所有控件foreach (Control contr in this.palchangepassword.Controls) { contr.Visible = true; }C#中,获取容器中某种控件foreach (Control con in this.Controls) {...
适用:XE6 或更高版本说明:ListView 在基本的项目里提供了 Accessory(项目右方「>」符号),但要如何分辨是否按下>或者项目本身呢?在 XE6 提供了OnItemClickEx 事件可以辨识,如下例:procedure TForm1.ListView1ItemClickEx(con...
分类:
数据库 时间:
2014-11-24 09:58:27
阅读次数:
273
问题描述:
Given an unsorted integer array, find the first missing positive integer.
For example,
Given [1,2,0] return 3,
and [3,4,-1,1] return 2.
Your algorithm should run in O(n) time and uses con...
分类:
其他好文 时间:
2014-11-23 16:02:15
阅读次数:
211
1、GCD串行队列+异步dispatch
说明:非常非常非常有用的操作
异步,表示会在主线程之外开一个(只开一个)新的线程
当dispatch分派好block之后,主线程立即返回,继续向下执行
串行队列,表示:被分派到此队列的block们,将FIFO有序地一个接一个执行
dispatch_async说明:
立即返回,从不等待,队列决定是serially还是con...
分类:
移动开发 时间:
2014-11-23 13:15:44
阅读次数:
571
HSRP热备份选择协议1.实验拓扑:使用GNS3模拟器(版本0.8.5)C1连接VM1网卡因为模拟器pc不支持trasert所以绑定真实网卡2.实验需求1R3的路由器挂了线路192.168.10.20可以自动切换到R2工作2R2的路由器挂了线路192.168.10.10可以自动切换到R3工作3.实验配置IP规划sw1#conftsw1(con..
分类:
其他好文 时间:
2014-11-22 23:21:39
阅读次数:
614
今天在netbeans中关闭webrick时,发现没有关闭掉,打入localhost:3000 依然显示页面,发现无法从nb中再次关闭只有进入ubuntu的进程下关闭查看进程:1法,ps -e 命令feng@feng:~$ sudo netstat -antupActive Internet con...
分类:
系统相关 时间:
2014-11-22 21:25:05
阅读次数:
196