MySQL创建表

Filed Under (php) by boymg on 14-10-2007

CREATE TABLE userinfo (
userid int(11) NOT NULL auto_increment,
username varchar(200) NOT NULL,
friend int(11) NOT NULL default ‘0′,
PRIMARY KEY (userid)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

PHP获取当前URL

Filed Under (php) by boymg on 13-10-2007

echo 'http://'.$_SERVER['SERVER_NAME'].':'.$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
?>

PHP的日期时间函数date()

Filed Under (php) by boymg on 13-10-2007

1,年-月-日
echo date(’Y-m-j’);
2007-02-6
Read the rest of this entry »