$connect = mysql_connect("localhost","php5","1234")
or die("not connect");
mysql_query("CREATE DATABASE IF NOT EXISTS problem CHARACTER SET euckr",$connect);//$dbname = mysql_create_db("problem", $connnect);와 동일
mysql_select_db("problem",$connect);
mysql_query("SET NAMES euckr");
$mt = "create table IF NOT EXISTS Memo (";
$mt = $mt."Idx INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY, ";
$mt = $mt."Name VARCHAR( 20 ) NOT NULL, ";
$mt = $mt."Content TINYTEXT NOT NULL, ";
$mt = $mt."Timelog DATETIME NOT NULL)";
mysql_query($mt,$connect);
$result = mysql_query("select * from Memo",$connect);
$count = mysql_num_rows($result);
?>