- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
/*
`id` int(10) NOT NULL auto_increment,
`time_s` timestamp NOT NULL default CURRENT_TIMESTAMP,
`event` varchar(10) NOT NULL,
`member` int(4) NOT NULL,
PRIMARY KEY (`id`)
*/
$min = 0;
$result=mysql_query('select * from `stat_prohod`.`events`');
while ( $row = mysql_fetch_assoc ( $result ) ) {
if ($row ["id"] > $min) {
$last = $row;
$min = $row ["id"];
}
}
выборка последней записи.
табла заполняется
$query1="INSERT INTO `stat_prohod`.`events` (`event` ,`member` )VALUES ('".$action."', '".$id."');";
guest 18.06.2010 15:23 # +1
Мистер Хэнки 19.06.2010 05:49 # 0
guest 19.06.2010 18:02 # −2