Viewing file: setup2.php (1.44 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<html>
<head>
<title>สร้างฐานข้อมูล 2</title>
<link href="./style.css" rel="stylesheet" type="text/css">
</head>
<?
include("config.inc.php");
mysql_connect($host,$user,$passwd) or die("Unable to Connect");
$sql ="CREATE TABLE webboard_online (
SID varchar(100) NOT NULL default '',
time varchar(15) NOT NULL default '',
day char(3) NOT NULL default ''
) ";
$result = mysql_db_query($dbname,$sql);
if($result!=0) {
echo "<center>";
echo "<table width=60% border=1 bordercolor=#ff69b4 bgcolor=#f0ffff cellpadding=2 cellspacing=0>";
echo "<tr><td align=center>";
echo "<font size=2 face='MS Sans Serif'>";
echo "<font size=3 color=red><b>ได้สร้างฐานข้อมูลแล้ว</b></font><br><br>";
echo "<font color=blue>webboard_online</font>";
echo "</font></td></tr></table>";
echo "<br><hr width=500 color=blue>";
echo "</center>";
exit();
}
else {
echo "<center>";
echo "<table width=60% border=1 bordercolor=#ff69b4 bgcolor=#f0ffff cellpadding=2 cellspacing=0>";
echo "<tr><td align=center>";
echo "<font size=2 face='MS Sans Serif'>";
echo "<font size=3 color=red><b>ได้สร้างฐานข้อมูล webboard_online ไปแล้ว </b></font><br><br>";
echo "หรือมีข้อผิดพลาดที่ระบบ<br><br>";
//echo "กรุณาแจ้ง <font color=blue>admin</font> ให้ตรวจสอบด้วยครับ";
echo "</font></td></tr></table>";
echo "<br><hr width=500 color=blue>";
echo "</center>";
exit();
}
?>
</body>
</html>
|