|
|
|
Warning: implode() [function.implode]: Invalid arguments passed in แก้ยังไงคะ |
|
|
|
|
|
|
|
code ?
|
|
|
|
|
Date :
2012-01-31 22:13:40 |
By :
webmaster |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code (PHP)
$skillComputer = implode(",", $_POST["txtComputer"]);
$driver = implode(",", $_POST["txtDriver"]);
$vehicle = implode(",", $_POST["txtVehicle"]);
$strSQL ="INSERT INTO `homemall`.`application` (
`ApplyID` ,
`Position1ID` ,
`Position2ID` ,
`NeedSalary` ,
`Name` ,
`Surename` ,
`Nickname` ,
`Age`,
`Born` ,
`Gender` ,
`Nationality`,
`Race`,
`Religion`,
`IDCard`,
`High` ,
`Weight` ,
`Tel` ,
`Mobile` ,
`Email` ,
`SocialSecurity`,
`TaxIDnumber`,
`Picture` ,
`AddressCensus` ,
`ProvinceCensus` ,
`ZipcodeCensus` ,
`Address` ,
`Village` ,
`Build` ,
`Room` ,
`Class` ,
`Moo` ,
`Soi` ,
`Road` ,
`Tambon` ,
`Amphur` ,
`ProvinceID` ,
`Zipcode` ,
`StyleAddress`,
`Military`,
`FamilyStatus`,
`NameMarriage`,
`AgeMarriage`,
`CareerMarriage`,
`OfficeMarriage`,
`PositionMarriage`,
`NumberChild`,
`MaleChild`,
`FemaleChild`,
`EducationLevel` ,
`InstitutionName` ,
`Major` ,
`GraduationYear` ,
`GPA` ,
`OfficeName1` ,
`TimeWork1` ,
`Position1` ,
`Salary1` ,
`ProgramUsed1` ,
`ReceivedTraining1` ,
`JobDescription1` ,
`OfficeName2` ,
`TimeWork2` ,
`Position2` ,
`Salary2` ,
`ProgramUsed2` ,
`ReceivedTraining2` ,
`JobDescription2` ,
`OfficeName3` ,
`TimeWork3` ,
`Position3` ,
`Salary3` ,
`ProgramUsed3` ,
`ReceivedTraining3` ,
`JobDescription3` ,
`CKTypewriterTH` ,
`TypewriterTH` ,
`CKTypewriterENG` ,
`TypewriterENG` ,
`Computer` ,
`OtherProgram` ,
`SpeakTH` ,
`ReadTH` ,
`WriteTH` ,
`LanguageOther` ,
`SpeakOther` ,
`ReadOther` ,
`WriteOther` ,
`Driver` ,
`Vehicle` ,
`TechnigueOther` ,
`CashGuarantee` ,
`PersonGuarantee` ,
`ChangePosition` ,
`OutsideWork` ,
`Overtime` ,
`StartWork` ,
`filePicOther1`,
`filePicOther2`,
`RegisterDate`
)
VALUES (
NULL ,
'".$_POST["txtPosition1"]."',
'".$_POST["txtPosition2"]."',
'".$_POST["txtNeedSaraly"]."',
'".$_POST["txtName"]. "',
'".$_POST["txtSurename"]."',
'".$_POST["txtNickname"]."',
'".$_POST["txtAge"]."',
'".$_POST["txtBorn"]."',
'".$_POST["txtGender"]."',
'".$_POST["txtNationality"]."',
'".$_POST["txtRace"]."',
'".$_POST["txtReligion"]."',
'".$_POST["txtIDCard"]."',
'".$_POST["txtHigh"]."',
'".$_POST["txtWeight"]."',
'".$_POST["txtTel"]."',
'".$_POST["txtMobile"]."',
'".$_POST["txtEmail"]."',
'".$_POST["txtSocialSecurity"]."',
'".$_POST["txtTaxIDnumber"]."',
'".$_POST["filePicture"]."',
'".$_POST["txtAddressCensus"]."',
'".$_POST["txtProvinceCensus"]."',
'".$_POST["txtZipcodeCensus"]."',
'".$_POST["txtAddress"]."',
'".$_POST["txtVillage"]."',
'".$_POST["txtBuild"]."',
'".$_POST["txtRoom"]."',
'".$_POST["txtClass"]."',
'".$_POST["txtMoo"]."',
'".$_POST["txtSoi"]."',
'".$_POST["txtRoad"]."',
'".$_POST["txtTambon"]."',
'".$_POST["txtAmphur"]."',
'".$_POST["txtProvince"]."',
'".$_POST["txtZipcode"]."',
'".$_POST["txtStyleAddress"]."',
'".$_POST["txtMilitary"]."',
'".$_POST["txtFamilyStatus"]."',
'".$_POST["txtNameMarriage"]."',
'".$_POST["txtAgeMarriage"]."',
'".$_POST["txtCareerMarriage"]."',
'".$_POST["txtOfficeMarriage"]."',
'".$_POST["txtPositionMarriage"]."',
'".$_POST["txtNumberChild"]."',
'".$_POST["txtMaleChild"]."',
'".$_POST["txtFemaleChild"]."',
'".$_POST["txtEducationLevel"]."',
'".$_POST["txtInstitutionName"]."',
'".$_POST["txtMajor"]."',
'".$_POST["txtGraduationYear"]."',
'".$_POST["txtGPA"]."',
'".$_POST["txtOfficeName1"]."',
'".$_POST["txtTimeWork1"]."',
'".$_POST["txtPositionOld1"]."',
'".$_POST["txtSalary1"]."',
'".$_POST["txtProgramUsed1"]."',
'".$_POST["txtReceivedTraining1"]."',
'".$_POST["txtJobDescription1"]."',
'".$_POST["txtOfficeName2"]."',
'".$_POST["txtTimeWork2"]."',
'".$_POST["txtPositionOld2"]."',
'".$_POST["txtSalary2"]."',
'".$_POST["txtProgramUsed2"]."',
'".$_POST["txtReceivedTraining2"]."',
'".$_POST["txtJobDescription2"]."',
'".$_POST["txtOfficeName3"]."',
'".$_POST["txtTimeWork3"]."',
'".$_POST["txtPositionOld3"]."',
'".$_POST["txtSalary3"]."',
'".$_POST["txtProgramUsed3"]."',
'".$_POST["txtReceivedTraining3"]."',
'".$_POST["txtJobDescription3"]."',
'".$_POST["txtCKTypewriterTH"]."',
'".$_POST["txtTypewriterTH"]."',
'".$_POST["txtCKTypewriterENG"]."',
'".$_POST["txtTypewriterENG"]."',
'$skillComputer',
'".$_POST["txtOtherProgram"]."',
'".$_POST["txtSpeakENG"]."',
'".$_POST["txtReadENG"]."',
'".$_POST["txtWriteENG"]."',
'".$_POST["txtLanguageOther"]."',
'".$_POST["txtSpeakOther"]."',
'".$_POST["txtReadOther"]."',
'".$_POST["txtWriteOther"]."',
'$driver',
'$vehicle',
'".$_POST["txtTechnigueOther"]. "',
'".$_POST["txtCashGuarantee"]. "',
'".$_POST["txtPersonGuarantee"]. "',
'".$_POST["txtChangePosition"]. "',
'".$_POST["txtOutsideWork"]. "',
'".$_POST["txtOvertime"]. "',
'".$_POST["txtStartWork"]. "',
'images/picapply/".$_FILES["filePicOther1"]["name"]."',
'images/picapply/".$_FILES["filePicOther2"]["name"]. "',
now() ); ";
Code (PHP)
<tr>
<td><div class="t3">เครื่องใช้สำนักงาน:</div>
<div class="fontcheckbox"> <input name="txtCKTypewriterTH" type="checkbox" value="พิมพ์ดีดไทย" class="checkbox">พิมพ์ดีดไทย <input type="text" name="txtTypewriterTH" class="inputTypewriter"/> คำ/นาที</div>
</td>
<td colspan="2">
<div class="fontcheckbox"><input name="txtCKTypewriterENG" type="checkbox" value="พิมพ์ดีดภาษาอังกฤษ" class="checkbox">พิมพ์ดีดภาษาอังกฤษ <input type="text" name="txtTypewriterENG" class="inputTypewriter"/> คำ/นาที</div>
</td>
</tr>
<tr>
<td><div class="t3">คอมพิวเตอร์:</div>
<div class="fontcheckbox">
<input name="txtComputer[]" type="checkbox" value="Word" class="comcheckbox">Word
<input name="txtComputer[]" type="checkbox" value="Excel" class="comcheckbox">Excel
<input name="txtComputer[]" type="checkbox" value="PowerPoint" class="comcheckbox">PowerPoint
<input name="txtComputer[]" type="checkbox" value="Access" class="comcheckbox">Access
</div>
</td>
<tr>
<td>
<div class="t2">ใบอนุุญาตการขับขี่</div>
</td>
</tr>
<tr>
<td>
<div class="fontcheckbox"><input name="txtDriver[]" type="checkbox" value="รถยนต์" class="checkbox">รถยนต์
<input name="txtDriver[]" type="checkbox" value="รถจักรยานยนต์" class="checkbox">รถจักรยานยนต์</div>
</td>
</tr>
<tr>
<td>
<div class="t2">พาหนะที่เป็นของท่านเอง</div>
</td>
</tr>
<tr>
<td>
<div class="fontcheckbox"> <input name="txtVehicle[]" type="checkbox" value="รถยนต์" class="checkbox">รถยนต์
<input name="txtVehicle[]" type="checkbox" value="รถจักรยานยนต์" class="checkbox">รถจักรยานยนต์</div>
</td>
</tr>
|
|
|
|
|
Date :
2012-01-31 22:16:39 |
By :
Poster |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 00
|