header("Content-type: text/html; charset=utf-8");// 创建数据库连接$con = mysql_connect('localhost', 'root', 'root') or die('Could not connect: ' . mysql_erro...
分类:
其他好文 时间:
2014-07-22 22:56:55
阅读次数:
216
问题: 今天发布项目的时候遇到这个破问题,纳闷了好久,最后想起来自己改过程序生成的目标平台(原生成目标平台是Any CPU,被我改成了X86的).解决方法: 改回原来的Any CPU 从新发布即可.
分类:
其他好文 时间:
2014-07-22 22:55:14
阅读次数:
180
Hello everybody,One day I had problems with GUI svn client and a big headache how to commit my changes. I have found how to do that using Terminal and...
分类:
其他好文 时间:
2014-07-19 21:30:39
阅读次数:
197
[root@luozhonghua mysql-5.5.21]# cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/data/mysql -DSYSCONFDIR=/etc
-- Check size of pthread_t
-- Check size of pthread_t - done
-- Perf...
分类:
数据库 时间:
2014-07-18 23:04:23
阅读次数:
287
Two elements of a binary search tree (BST) are swapped by mistake.
Recover the tree without changing its structure.
Note:
A solution using O(n)
space is pretty straight forward. Could you devis...
分类:
其他好文 时间:
2014-07-18 22:33:04
阅读次数:
328
Problem Description
The doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze began to shake, and the doggie could feel the ground sinking. He ...
分类:
其他好文 时间:
2014-07-18 22:25:05
阅读次数:
246
我用的XCode版本是5.1,遇到一种奇怪的编译错误:libxml/tree.h not found。查了一些文章,按照一篇XCode 4.5的解决方案解决了这个问题。我觉得应该有不少人遇到这种问题,这里分享一下。【注】至少我这里是可以解决的,确定无误,如果您看了我的文章没解决了您的问题,求轻喷……...
分类:
其他好文 时间:
2014-07-18 19:26:30
阅读次数:
147
分页程序一般由两条SQL组成:SELECT COUNT(*) FROM ... WHERE ....SELECT ... FROM ... WHERE LIMIT ... 如果使用SQL_CALC_FOUND_ROWS的话,一条SQL就可以了:SELECT SQL_CALC_FOUND_ROWS ....
分类:
数据库 时间:
2014-07-18 19:24:17
阅读次数:
292
I found this code works great as the function strip_tags in php to replace html tags from string and I just want to share it with you. Hope it benefit...
分类:
其他好文 时间:
2014-07-17 12:56:52
阅读次数:
220
执行php安装
--enable-mbstring --enable-ftp --enable-gd-native-ttf --with-openssl --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --enable-session --...
分类:
其他好文 时间:
2014-07-17 10:46:12
阅读次数:
150