2012年2月18日

摘要: 很多情况下,我们要提前用到当前某个表的auto_increment自增id,可以通过执行sql语句来查询到这个id值。show table status where name=’表名’或者show table status like ‘表名’然后从查询到的结果集中获得auto_increment的值代码实例:<?php mysql_connect("localhost","root",''); mysql_select_db("test"); $sql="show table status where 阅读全文
posted @ 2012-02-18 20:42 阿酷影 阅读(1254) 评论(0) 推荐(1)
摘要: 此为未清除浮动源代码,运行代码无法查看到父级元素浅黄色背景。<style type=”text/css”><!–*{margin:0;padding:0;}body{font:36px bold; color:#F00; text-align:center;}#layout{background:#FF9;}#left{float:left;width:20%;height:200px;background:#DDD;line-height:200px;}#right{float:right;width:30%;height:80px;background:#DDD;line 阅读全文
posted @ 2012-02-18 11:34 阿酷影 阅读(1295) 评论(2) 推荐(3)

导航