小编use*_*275的帖子

PHP mysql自动插入时间戳

假设我有一个包含这些字段的表名auto_parts. id, part, price, timestamp 我通过php插入一个新行,如下所示:

$query = "insert into auto_parts(id, part, price, timestamp)
  values(1, 'axle', 200)"
mysql_query($query);
Run Code Online (Sandbox Code Playgroud)

会自动添加时间戳.或者我是否必须自己插入时间戳值?

php mysql timestamp

10
推荐指数
2
解决办法
4万
查看次数

如果内容扩展,如何推送固定的div

我的页脚底部有一个固定位置,页面底部的索引为999999.我的主要内容容器长度增加,用户添加的帖子越多,如果它大于页面,则会显示滚动条.如果我向下滚动主内容div的主要底部由于z索引隐藏在页脚后面.我尝试删除它,但现在它继续上去.当主要内容扩展时,是否可以将页脚向下推?

#footer {
position:fixed;
z-index:999999;
bottom: 0;
width: 100%;
height: 50px;
margin-top: 25px;
background-color: #333;
}

#main-content {
position: absolute;
overflow: hidden;
z-index: 10;
-moz-border-radius: 8px; /* Firefox */
-webkit-border-radius: 8px; /* Safari, Chrome */
border-radius: 8px; /* CSS3 */
behavior: url('../pie/pie.htc');
border: 5px solid #0f344f;
background: #ffffff;
left: 100px;
top: 195px;
width: 600px;
height: auto;
}
Run Code Online (Sandbox Code Playgroud)

html css

1
推荐指数
1
解决办法
5149
查看次数

标签 统计

css ×1

html ×1

mysql ×1

php ×1

timestamp ×1