摘要:
id字段:数据的IDname字段,用户名sex 字段,性别.我们现在要插入三条进去,这三条数据存在数组中.<?phpmysql_connect('localhost','root','');mysql_select_db('mysql');$data = array( 0=> array( 'name' => 'zhangsan', 'sex' => 'm' ), 1=> array( 'name' => ' 阅读全文
摘要:
1.UNIX_TIMESTAMP();mysql_query("insert into student (name,intime) values('liu',unix_timestamp());"); from_unixtime(time_stamp) -> 将时间戳转换为日期 unix_times... 阅读全文