insert.php 393 Bytes
Newer Older
patthamawan's avatar
patthamawan committed
1 2 3 4 5
<<?php
require_once('Database.php');
$db = new Database('database','user','pass','localhost'); // เชื่อมต่อฐานข้อมูล
$result = $db->insert('users',$_POST); // สั่ง Insert ข้อมูล users คือชื่อ Table ส่วน $_POST คือข้อมูลที่ส่งมาจากฟอร์มทั้งหมด
?>