 |
|
คือว่าในฐานข้อมูลของผมเป็ฯแบบนี้อ่ะครับ
Code (PHP)
CREATE TABLE `tb_people` (
`id_people` int(11) NOT NULL auto_increment,
`id_people_type` char(3) NOT NULL default '1',
`title_people_th` text NOT NULL,
`title_people_jp` text NOT NULL,
`detail_people_th` text NOT NULL,
`detail_people_jp` text NOT NULL,
`people_pic` tinytext NOT NULL,
`people_pic_thumb` tinytext NOT NULL,
`people_vdo` tinytext NOT NULL,
`id_post` int(1) NOT NULL default '0001',
`people_date` varchar(10) NOT NULL default '',
`view` int(1) NOT NULL default '0',
`comment` int(11) NOT NULL default '0',
`md5` tinytext NOT NULL,
`status` int(1) NOT NULL default '0',
PRIMARY KEY (`id_people`)
) TYPE=MyISAM CHARSET=utf8 AUTO_INCREMENT=1 ;
คือตอนจัดเก็บช้อมูล สมมุติว่า ถ้าหัวข้อนี้มีแต่ภาษาไทย ก็กรอกแต่ภาษาไทย ข้อมูลก็จะเก็บแต่ภาษาไทยลงในตาราง
เวลาแสดงผลคือ ผมจะให้ตรวจสอบว่า ถ้าค่าในตารางภาษาไทยว่าง แสดงว่าหัวข้อนั้นเป็น ภาษาญี่ปุ่น เนี้ยอ่ะครับ
|
 |
 |
 |
 |
Date :
2011-12-15 15:57:35 |
By :
kamekazea |
|
 |
 |
 |
 |
|
|
 |