 |
การเลือน scroll bar อยากทำให้เป็นเหมือน เว็บ thaicreate.com นะครับ |
|
 |
|
|
 |
 |
|

ใช้ jQuery ทำปุ่ม Scroll to top หรือ Back to top เพื่อขยับตำแหน่งของ Page ขึ้นไปบนสุด
|
 |
 |
 |
 |
Date :
2013-07-11 11:10:46 |
By :
mr.win |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณมากครับ พี่วิน
|
 |
 |
 |
 |
Date :
2013-07-11 12:51:57 |
By :
sakchai.chai |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ตอบความคิดเห็นที่ : 4 เขียนโดย : mr.win เมื่อวันที่ 2013-07-11 12:54:21
รายละเอียดของการตอบ ::
Code (PHP)
.<? include ('conn.php');
$id_path = $edit_id;
$txtPO = $_POST['hiddenField1'];
$Std_value = $_POST['hiddenField'];
$a = $_POST['txtairpess'];
$b = $_POST['txtweightball'];
$c = $_POST['txta'];
$d = $_POST['txtb'];
$e = $_POST['txtc'];
$f = $_POST['txtdiff'];
$g = $_POST['Rdomold'];
$h = $_POST['selectring2'];
$i = $_POST['selectcondition2'];
$id = $_REQUEST['edit_id'];
$strSQL .= "INSERT INTO inspection_rec SET Pressureball = '".$a."',Weightball ='".$b."',Pera = '".$c."',PerB = '".$d."',PerC = '".$e."',Diff = '".$f."',MoldShape = '".$g."',MoldRing = '".$h."',Conditionball = '".$i."',Std_value ='".$Std_value."',Po ='".$txtPO."' WHERE Po = '".$id_path."'";
echo $strSQL;
$query = mysql_query($strSQL)or die (mysql_error());
/*($strSQL)or die(mysql_error() ." SQL = [$strSQL]");*/
?>
นี่ค่ะพี่วิน เป้นโค้ดบันทึกข้อมูล
|
 |
 |
 |
 |
Date :
2013-07-11 13:01:57 |
By :
pampam |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
มี Error ไหม๊ครับ 
|
 |
 |
 |
 |
Date :
2013-07-11 13:04:37 |
By :
mr.win |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ตอบความคิดเห็นที่ : 6 เขียนโดย : mr.win เมื่อวันที่ 2013-07-11 13:04:37
รายละเอียดของการตอบ ::
.INSERT INTO inspection_rec SET Pressureball = '',Weightball ='',Pera = '',PerB = '',PerC = '',Diff = '',MoldShape = '8',MoldRing = 'ปกติ',Conditionball = 'ปกติ',Std_value ='S02',Po ='222' WHERE Po = ''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 'WHERE Po = ''' at line 1
error แบบนี้อ่ะค่ะ
|
 |
 |
 |
 |
Date :
2013-07-11 13:05:48 |
By :
pampam |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ตอบความคิดเห็นที่ : 6 เขียนโดย : mr.win เมื่อวันที่ 2013-07-11 13:04:37
รายละเอียดของการตอบ ::
.พี่วินค่ะ มันเออเร่อมาแบบนี้อ่ะค่ะ
INSERT INTO inspection_rec SET Pressureball = '',Weightball ='',Pera = '',PerB = '',PerC = '',Diff = '',MoldShape = '8',MoldRing = 'ปกติ',Conditionball = 'ปกติ',Std_value ='S02',Po ='222' WHERE Po = ''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 'WHERE Po = ''' at line 1
|
 |
 |
 |
 |
Date :
2013-07-11 13:33:11 |
By :
pampam |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ตรง WHERE Po = '' มันเป็นค่าว่างครับ ลองดูโค้ดครับ แต่โดยปกติแล้วในการใช้คำสั่ง INSERT จะไม่มีเงื่อนไขนะครับ
นอกจาก UPDATE , DELETE , SELECT จะมีเงื่อนไขในการกระทำ
ถ้าต้องการ INSERT ก็ลองตัด WHERE Po = '' ออกครับ  
|
 |
 |
 |
 |
Date :
2013-07-11 13:48:26 |
By :
arm8957 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|