thaiall logomy background
coding : entrance. enttyperestore.php.
my town
Source : Perl | PHP | ASP | JSP | HTML | HTML5 | JavaScript | Java | COBOL | C++ | MS Access | VBNet | VB | Python | โค้ดดี
File : enttyperestore.php. ID : 1704
Skin : Default | Sons-of-obsidian | Sunburst | Highlighter | Full
<?
require("connect.php");
$tb = "enttype";
$result = mysql_db_query($db,"select * from $tb");
if ($result) {
  echo "Clear all records : ";
  $query="delete from $tb";
} else {
  echo "Create $tb : ";
  $result=mysql_create_db($db,$connect);
  $query="create table $tb (idtype char(4),descp char(40))";
}
$result=mysql_db_query($db,$query);
if ($result) { echo "Ok"; } else { echo "Error"; }  
# ======
$query="insert into enttype values('1001','Business computer')";
$result = mysql_db_query($db,$query);
$query="insert into enttype values('1002','Computer engineering')";
$result = mysql_db_query($db,$query);
$query="insert into enttype values('1003','Computer science')";
$result = mysql_db_query($db,$query);
$query="insert into enttype values('1004','Information technology')";
$result = mysql_db_query($db,$query);
# =======
$result = mysql_db_query($db,"select * from $tb");
$cnt= mysql_num_rows($result);
echo "<br>Restore $tb $cnt records : Ok";
mysql_close($connect);
?>
จำนวน : 29 บรรทัด
าษาเฮชทีเอ็มแอล (HTML = HyperText Markup Language) คือ ภาษาคอมพิวเตอร์ที่ออกแบบมาเพื่อใช้ในการสร้างเว็บเพจที่เรียกดูผ่านทางเว็บเบราว์เซอร์ (Web Browser) เริ่มพัฒนาโดย ทิม เบอร์เนอรส์ ลี (Tim Berners Lee) ในปัจจุบัน HTML ล่าสุดคือ รุ่น 5 เป็นมาตรฐานหนึ่งของ ISO ซึ่งจัดการโดย World Wide Web Consortium (W3C) ในปัจจุบัน ทาง W3C ผลักดัน รูปแบบของ HTML แบบใหม่ ที่เรียกว่า XHTML รุ่นแรกคือ 1.0 (ม.ค.2543) ซึ่งมีโครงสร้างเป็นแบบ XML (eXtensible Markup Language)
ตัวอย่าง Hello World
ปรับปรุงโปรแกรม source.pl : 2565-07-24
rspsocial
Thaiall.com