 |
ผมโหลดปฏิทินมาแล้วแต่เอามาปรับใช้ไม่เป็นแนะนำด้วยครับ |
|
 |
|
|
 |
 |
|
คุณรันตัวอย่างมันดูหรือยัง แล้วลองเปิดไฟล์ตัวอย่างมันดูหรือยังครับ ก่อนที่จะบอกว่าไม่เข้าใจ มันมีวิธีใช้บอกในตัวอย่างนะ หาดูก่อนดีไหม
|
 |
 |
 |
 |
Date :
2011-03-13 01:05:13 |
By :
PlaKriM |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
มันมี Demo ให้ดูครับ
|
 |
 |
 |
 |
Date :
2011-03-13 09:00:59 |
By :
webmaster |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อ่อ เห็นแล้วครับ ขอบคุณมากครับ
|
 |
 |
 |
 |
Date :
2011-03-13 09:03:31 |
By :
thecarbon |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
คือเอามาใช้งานได้แล้ว
แต่ติดตรงที่จะส่งค่าจาก textfield กดปุ่ม submit แล้วมันนิ่งน่ะครับ
โค้ดครับ
<form id="form1" name="form1" method="post" action="exam-sets-save.php">
<link rel="stylesheet" type="text/css" href="test/epoch_styles.css" />
<script type="text/javascript" src="test/epoch_classes.js"></script>
<script type="text/javascript">
/*You can also place this code in a separate file and link to it like epoch_classes.js*/
var bas_cal,dp_cal,ms_cal;
window.onload = function () {
dp_cal = new Epoch('epoch_popup','popup',document.getElementById('popup_container'));
};
</script>
</head>
<body>
<div id="basic_container"></div>
<form id="placeholder" method="get" action="#">
<input id="popup_container" type="text" />
</form>
<label> <br />
<input type="submit" name="submit" id="submit" value="Submit" />
</label>
</form>
</body>
|
 |
 |
 |
 |
Date :
2011-03-13 09:35:01 |
By :
thecarbon |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
<form id="placeholder" method="get" action="">
|
 |
 |
 |
 |
Date :
2011-03-13 12:55:18 |
By :
PlaKriM |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
<form id="placeholder" method="get" action="exam-sets-save.php">
ผมแก้ไขเป็นแบบนี้แล้ว กด submit ดูมันก็ยังนิ่งเหมือนเดิมครับ
|
 |
 |
 |
 |
Date :
2011-03-13 14:19:27 |
By :
thecarbon |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
<div id="basic_container"></div>
<form id="placeholder" method="get" action="#">
<input id="popup_container" type="text" />
</form>
<label> <br />
<input type="submit" name="submit" id="submit" value="Submit" />
</label>
</form>
เอาสีแดงออก ไปปิดก่อน กดให้ตายยังไงมันก็ไม่ไปหรอก
|
 |
 |
 |
 |
Date :
2011-03-13 14:29:29 |
By :
PlaKriM |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ตรงนี้นิเองขอบคุณครับ
ถามต่ออีกนิสนึง ผมจะบันทึกลงฐานข้อมูลแล้วมัน error น่ะครับ
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'id='C1' , date='03/15/2011' , stime='08:00:00' , etime='10:00:00'' at line 1
ฐานข้อมูลครับ

อันนี้โค้ด
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?
include('config.php');
$user = $_GET['users'];
$Date = $_GET['popup_container'];
$stime = $_GET['stime2'];
$etime = $_GET['etime2'];
//echo $user ,$Date , $stime , $etime;
if($user == "" and $Date == "")
{
echo "<script>";
echo "alert('กรุณากรอกข้อมูลให้ครบถ้วน');";
echo "window.location='exam-set.php';";
echo "</script>";
}
if($user != "" and $Date != "")
{
$sql = "insert into exam_set values id='$user' , date='$Date' , stime='$stime' , etime='$etime' ";
mysql_query($sql) or die (mysql_error());
echo "window.location='exam-set.php';";
}
?>
ค่าวันที่ในฐานข้อมูลมันเป็น ปี/เดือน/วัน แต่ที่ส่งค่ามาเป็น เดือน/วัน/ปี ผิดตรงนี้ใช่ไหมครับ มันต้องแก้ไขยังไงครับ
|
ประวัติการแก้ไข 2011-03-13 16:15:14
 |
 |
 |
 |
Date :
2011-03-13 16:13:13 |
By :
thecarbon |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณครับ
|
 |
 |
 |
 |
Date :
2011-03-13 22:33:39 |
By :
thecarbon |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|