 |
โชว์ข้อมูลในฐานข้อมูล แล้วเป็นแบบนี้ค่ะ ตารางแสดงข้อมูลเวลาเข้า-ออก |
|
 |
|
|
 |
 |
|
Code (PHP)
<?
$objConnect = mysql_connect("localhost","root","12345") or die("Error Connect to Database");
$objDB = mysql_select_db("mydatabase");
mysql_query("SET NAMES TIS620"); // ใส่โค้ดนี้แล้วมันไม่ขึ้นค่ะ
$strSQL = "SELECT customer.*,student.* FROM customer,student
WHERE customer.std_code = student.std_code";
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>
|
 |
 |
 |
 |
Date :
2010-02-02 15:54:18 |
By :
webmaster |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Code (PHP)
$connect=mysql_connect($host,$username,$pass) or die("Can not contact with , the Database");
mysql_query("set NAMES'UTF8'");
mysql_select_db($db) or die("Can not call database ,get");
แบบนี้ก็ได้ครับ เลือกได้ตามสะบายเลย
|
 |
 |
 |
 |
Date :
2010-02-02 16:15:21 |
By :
ryuk |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ได้แล้ว....ขอบคุณค่ะ
|
 |
 |
 |
 |
Date :
2010-02-02 16:24:29 |
By :
pookpoy |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|