E D R , A S I H C RSS

PHP-방명록만들기

No difference found




$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);
?>
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:23:59
Processing time 0.0292 sec