mysql_num_rows();返回结果集中行的数目。1 $sql1 = "select *
from movie";2 $result1 = mysql_query($sql1) or die(mysql_error());3 $count =
mysql_num_rows($result1);...
分类:
Web程序 时间:
2014-07-22 23:13:33
阅读次数:
354
今天在学习鸟哥的菜的时候,发现自己linux不可以启用vim命令,错误为:bash: vim:
command not found。 机器环境:VMWare8+RED HAT Enterprise5 解决方法: 发现问题的根源在于没有安装好vim 输入
rpm -qa|grep vim ...
分类:
其他好文 时间:
2014-07-22 23:12:56
阅读次数:
993
//华为编程:筷子,找到第一个单对的筷子#include #define max 37int
main(){ int n,i,j; int a[max]; int flag=0; int error=-1; scanf("%d",&n);
if(n>max) { printf("...
分类:
其他好文 时间:
2014-07-22 23:12:15
阅读次数:
325
引入:#include#includevoidfun(char**q){exit;}voidmain(){char**p,a[6][8];p=a;fun(a);}编译不能通过!ERROR:不能将”char(*)[8]”类型的值分配到”char**”类型的实体。ERROR:”char(*)[8]”类型...
分类:
其他好文 时间:
2014-07-22 23:11:34
阅读次数:
313
http://anthon-lx.iteye.com/blog/811460完整的错误信息如下:java.sql.SQLException:
Listener refused the connection with the following error:ORA-12505,
TNS:listene...
分类:
数据库 时间:
2014-07-22 23:09:35
阅读次数:
430
$.ajax({type:"get", url:"http://",
data:"name="+userid+"&password="+password,async:true,
error:function(request){alert("Connectionerror"); }, success:...
分类:
Web程序 时间:
2014-07-22 23:06:54
阅读次数:
373
设置不使用缓存的过滤器功能描述 将HTTP响应头信息中的缓存参数设置为不进行缓存。使用方法 在
java web 项目的 web.xml 文件中添加如下代码。 ClearCacheFilter com.hmw.filter.ClearCacheFilter
ClearCacheFilt...
分类:
其他好文 时间:
2014-07-22 23:06:33
阅读次数:
311
设置站点黑名单的过滤器功能描述
不允许从禁用的站点(IP)访问当前应用,也不允许从禁用的站点链接到当前应用。 为了简单起见,设置禁用站点时,暂不支持使用通配符。只是抛砖引玉了。
比如:禁止其他的网站引用本站的图片资源,只需在此基础上稍作修改即可。使用方法 在 java web 项目的 web.xml...
分类:
其他好文 时间:
2014-07-22 23:06:33
阅读次数:
440
原文地址:http://hankjin.blog.163.com/blog/static/33731937200942915452244/程序中不可避免的要用到配置文件或数据,对于数据量比较小的程序,部署数据库花费的时间就显得浪费了,因此用XML来存储不妨为一个很好的办法,而且结合C#的DataSe...
分类:
数据库 时间:
2014-05-01 16:20:41
阅读次数:
328
/// /// 读取配置文件keys /// /// public string _GetKeys()
{ string filename = Server.MapPath("/") + @...
分类:
Web程序 时间:
2014-05-01 15:56:57
阅读次数:
391