
DataBase
技术小黑屋
博客已经转移到 http://droidyue.com/
展开
-
从数据库中提取新闻的上一条,下一条的sql语句
在做cms系统时我们经常会用到上一条,下一条或者是上一篇,下一篇,这是我们都会简单的使用 这里暂定数据表为news 字段名为id 当前urlid参数值为currentId 如果按照一般的想法,下面是提取上一篇的信息的sql语句 select * from news where id=currentId-1; 下面是提取下一篇信息的sql语句 select * fro原创 2011-02-26 14:55:00 · 5325 阅读 · 2 评论 -
关于$query=mysql_query($query);返回的是什么类型的值的问题的理解
关于$query=mysql_query($query);返回的是什么类型的值的问题的理解 今天泡csdn论坛看见一贴,就是关于$query=mysql_query($query);返回的是什么类型的值的问题,开始以为返回值是数组类型,后来调试了一下才发现不是数组类型,是资源类型,下面是demo代码 <?php require_once("phpmysql.php");//引入数据库mysql原创 2011-01-01 22:55:00 · 10735 阅读 · 2 评论 -
XAMPP: Couldn’t start MySQL
If you use XAMPP, can happen to you the problem of MySQL does not start. This usually happens when we copy the XAMPP folder between computers or even when repomos a copy of the folder entirely. Her转载 2013-07-01 22:33:10 · 1636 阅读 · 0 评论