|
 |
|
มีปัญหาเกี่ยวกับระบบ resume ตรงวันเกิด add เข้าฐานข้อมูลไม่ได้ |
|
 |
|
|
 |
 |
|
คือพอผมกดบันทึกแล้วข้อมูลต่างๆก็เข้ามาในฐานข้อมูลดีนะครับ แต่วันเดือนปีของผมมันจะเป็นแบบ list ให้เลือกซึ่ง พอเลือกแล้วกดบันทึก ในฐานข้อมูลก็ยังคงเป็น 00000-00-0 อยู่ คือไม่มีข้อมูลอะไรเข้ามาเลยอ่ะครับ ผมอาจจะพิมอะไรผิดไปหรือเปล่า แต่ผมก็หาไม่เจอสักที
ยังไงช่วยดูให้หน่อยนะครับ
นิคือในส่วนของ save resume ครับ มือใหม่มากเลยครับ เป็นโปรเจคแรกในชีวิต T^T
Code (PHP)
<?
require("connect.inc_jac.php");
$bd = $_post['year']."-".$_post['mouth']."-".$_post['day'];
$strSQL = "INSERT INTO resume (fname,lname,nname,fname_en,lname_en,idcard,tel,mail,birthday ,yearold,weight,height,location,status,race,Nationality,Religion,num,num2,address1,address2,telper,class,Involved,place_job,tel2,Education,Institutions,branch,sub_1,acad_year,acad_year2,gpa,no_Exper,Exper,company,po_com,prop_job) VALUES ('".$_POST["fname"]."', '".$_POST["lname"]."','".$_POST["nname"]."','".$_POST["fname_en"]."','".$_POST['lname_en']."','".$_POST["idcard"]."',
'".$_POST["tel"]."','".$_POST["mail"]."','" .$bd."','".$_POST["yearold"]."','".$_POST["weight"]."','".$_POST["height"]."','".$_POST['location']."','".$_POST["status"]."','".$_POST["Race"]."','".$_POST["Nationality"]."','".$_POST["Religion"]."','".$_POST['num1']."',
'".$_POST["num2"]."', '".$_POST["address1"]."','".$_POST["address2"]."','".$_POST["telper"]."','".$_POST['class']."','".$_POST["Involved"]."',
'".$_POST["place_job"]."','".$_POST["tel2"]."','".$_POST["Education"]."','".$_POST['Institutions']."','".$_POST["branch"]."',
'".$_POST["sub_1"]."','".$_POST["acad_year"]."','".$_POST["acad_year2"]."','".$_POST['gpa']."','".$_POST["no_Exper"]."',
'".$_POST["Exper"]."','".$_POST["company"]."','".$_POST["po_com"]."','".$_POST['prop_job']."')";
$objQuery = mysql_query($strSQL);
echo "กรอกข้อมูลเสร็จสิ้น!<br>";
echo "<br> Go to <a href='http://localhost/php/project/login_user.php'>ย้อนกลับ</a>";
mysql_close();
?>

และตรงนี้คือส่วนในหน้า html ของวันเดือนปีนะครับ ผมเอามาแค่บางส่วน
Code (PHP)
<tr>
<td><h3>วันเดือนปีเกิด<select name="day" id="day">
<option value=""selected>วัน</option>
<option value="01">1</option>
<option value="02">2</option>
<option value="03">3</option>
</select>
<select name="mouth" id="mouth">
<option value="">เดือน</option>
<option value="01">มกราคม</option>
<option value="02">กุมภาพันธ์</option>
<option value="03">มีนาคม</option>
</select>
<select name="year" id="year">
<option value=""selected>ปี</option>
<option value="2002">2545</option>
<option value="2001">2544</option>
<option value="2000">2543</option>
<option value="1999">2542</option>
</select>
</h3></td></tr>
ผมอาจจะพิมอะไรพิม ยังไงก็บอกผมหน่อยนะครับ ขอบคุณมากๆครับ
Tag : PHP, HTML/CSS, JavaScript, jQuery, Windows

|
|
 |
 |
 |
 |
Date :
2012-07-25 14:56:08 |
By :
jackkieclub |
View :
1051 |
Reply :
2 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
คาดว่าตรงนี้ $_post ต้องตัวใหญ่ครับ
Code (PHP)
$bd = $_POST['year']."-".$_POST['mouth']."-".$_POST['day'];
|
ประวัติการแก้ไข 2012-07-25 15:04:10
 |
 |
 |
 |
Date :
2012-07-25 15:03:41 |
By :
narubet |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
โอ้ได้แล้วครับ ขอบคุณมากครับ แหม พลาดแบบไม่น่าพลาด 
|
 |
 |
 |
 |
Date :
2012-07-25 15:10:44 |
By :
jackkieclub |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 00
|