$sql = "update user set name='李白' where id=$id";
mysql_query($sql);
mysql_query($sql);
2015-08-17
//在这里构建分页查询
$start = ($page-1) * $pagesize;
$sql = "select name from user limit $start, $pagesize";
这样就可以了
$start = ($page-1) * $pagesize;
$sql = "select name from user limit $start, $pagesize";
这样就可以了
2015-08-17
Array
(
[0] => Array
(
[name] => 李白
)
[1] => Array
(
[name] => 李白
)
)
(
[0] => Array
(
[name] => 李白
)
[1] => Array
(
[name] => 李白
)
)
2015-08-17