2015-08-26 102 views
0

當我嘗試打開這個php代碼時,我想出了那個錯誤; 「解析錯誤:語法錯誤,第619行中的文件意外結束」,這是最後一行。這可能是一個愚蠢的sytax錯誤,但我無法弄清楚。請幫助:(我無法在瀏覽器上打開這個php代碼

<?php 
require 'db_conn.php'; 
page_protect(); 
if (isset($_POST['jobid'])) { 

?><html> 
<!doctype html> 
<head><title>Talent+, A Complete Talent Acquisition Portal</title> 
     <meta charset="utf8"> 
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> 
    <!-- Apple devices fullscreen --> 
    <meta name="apple-mobile-web-app-capable" content="yes" /> 
    <!-- Apple devices fullscreen --> 
    <meta names="apple-mobile-web-app-status-bar-style" content="black-translucent" /> 

    <!-- Bootstrap --> 
    <link rel="stylesheet" href="../../css/bootstrap.min.css"> 
    <!-- Bootstrap responsive --> 
    <link rel="stylesheet" href="../../css/bootstrap-responsive.min.css"> 
    <!-- jQuery UI --> 
    <link rel="stylesheet" href="../../css/plugins/jquery-ui/smoothness/jquery-ui.css"> 
    <link rel="stylesheet" href="../../css/plugins/jquery-ui/smoothness/jquery.ui.theme.css"> 
    <!-- dataTables --> 
    <link rel="stylesheet" href="../../css/plugins/datatable/TableTools.css"> 
    <!-- chosen --> 
    <link rel="stylesheet" href="../../css/plugins/chosen/chosen.css"> 
    <!-- Theme CSS --> 
    <link rel="stylesheet" href="../../css/style.css"> 
    <!-- Color CSS --> 
    <link rel="stylesheet" href="../../css/themes.css"> 

    <!-- jQuery --> 
    <script src="../../js/jquery.min.js"></script> 
    <!-- jQuery UI --> 
    <script src="../../js/plugins/jquery-ui/jquery.ui.core.min.js"></script> 
    <script src="../../js/plugins/jquery-ui/jquery.ui.widget.min.js"></script> 
    <script src="../../js/plugins/jquery-ui/jquery.ui.mouse.min.js"></script> 
    <script src="../../js/plugins/jquery-ui/jquery.ui.resizable.min.js"></script> 
    <!-- slimScroll --> 
    <script src="../../js/plugins/slimscroll/jquery.slimscroll.min.js"></script> 
    <!-- Bootstrap --> 
    <script src="../../js/bootstrap.min.js"></script> 
    <!-- Bootbox --> 
    <script src="../../js/plugins/bootbox/jquery.bootbox.js"></script> 
    <!-- dataTables --> 
    <script src="../../js/plugins/datatable/jquery.dataTables.min.js"></script> 
    <script src="../../js/plugins/datatable/TableTools.min.js"></script> 
    <script src="../../js/plugins/datatable/ColReorder.min.js"></script> 
    <script src="../../js/plugins/datatable/ColVis.min.js"></script> 
    <!-- Chosen --> 
    <script src="../../js/plugins/chosen/chosen.jquery.min.js"></script> 
<link rel="stylesheet" href="../../css/plugins/fullcalendar/fullcalendar.css"> 
    <link rel="stylesheet" href="../../css/plugins/fullcalendar/fullcalendar.print.css" media="print"> 
    <!-- Theme framework --> 
    <script src="../../js/eakroko.min.js"></script> 
    <!-- Theme scripts --> 
    <script src="../../js/application.min.js"></script> 
    <!-- Just for demonstration --> 
    <script src="../../js/demonstration.min.js"></script> 
    <!-- Favicon --> 
    <link rel="shortcut icon" href="img/favicon.ico" /> 
    <!-- Apple devices Homescreen icon --><link rel="stylesheet" href="../../css/plugins/multiselect/multi-select.css"> 
    <!-- timepicker --> 
    <link rel="stylesheet" href="../../css/plugins/timepicker/bootstrap-timepicker.min.css"> 
    <!-- colorpicker --> 
    <link rel="stylesheet" href="../../css/plugins/colorpicker/colorpicker.css"> 
    <!-- Datepicker --><meta charset="utf8"> 
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> 
    <!-- Apple devices fullscreen --> 
    <meta name="apple-mobile-web-app-capable" content="yes" /> 
    <!-- Apple devices fullscreen --> 
    <meta names="apple-mobile-web-app-status-bar-style" content="black-translucent" /> 


    <!-- Bootstrap --> 
    <link rel="stylesheet" href="../../css/bootstrap.min.css"> 
    <!-- Bootstrap responsive --> 
    <link rel="stylesheet" href="../../css/bootstrap-responsive.min.css"> 
    <!-- jQuery UI --> 
    <link rel="stylesheet" href="../../css/plugins/jquery-ui/smoothness/jquery-ui.css"> 
    <link rel="stylesheet" href="../../css/plugins/jquery-ui/smoothness/jquery.ui.theme.css"> 
    <!-- PageGuide --> 
    <link rel="stylesheet" href="../../css/plugins/pageguide/pageguide.css"> 
    <!-- Fullcalendar --> 
    <link rel="stylesheet" href="../../css/plugins/fullcalendar/fullcalendar.css"> 
    <link rel="stylesheet" href="../../css/plugins/fullcalendar/fullcalendar.print.css" media="print"> 
    <!-- Theme CSS --> 
    <link rel="stylesheet" href="../../css/style.css"> 
    <!-- Color CSS --> 
    <link rel="stylesheet" href="../../css/themes.css"> 
    <!-- Tagsinput --> 
    <link rel="stylesheet" href="../../css/plugins/tagsinput/jquery.tagsinput.css"> 
    <!-- chosen --> 
    <link rel="stylesheet" href="../../css/plugins/chosen/chosen.css"> 
    <!-- multi select --> 
    <link rel="stylesheet" href="../../css/plugins/multiselect/multi-select.css"> 
    <!-- timepicker --> 
    <link rel="stylesheet" href="../../css/plugins/timepicker/bootstrap-timepicker.min.css"> 
    <!-- colorpicker --> 
    <link rel="stylesheet" href="../../css/plugins/colorpicker/colorpicker.css"> 
    <!-- Datepicker --> 
    <link rel="stylesheet" href="../../css/plugins/datepicker/datepicker.css"> 
    <!-- Plupload --> 
    <link rel="stylesheet" href="../../css/plugins/plupload/jquery.plupload.queue.css"> 


    <!-- jQuery --> 
    <script src="../../js/jquery.min.js"></script> 
    <!-- jQuery UI --> 
    <script src="../../js/plugins/jquery-ui/jquery.ui.core.min.js"></script> 
    <script src="../../js/plugins/jquery-ui/jquery.ui.widget.min.js"></script> 
    <script src="../../js/plugins/jquery-ui/jquery.ui.mouse.min.js"></script> 
    <script src="../../js/plugins/jquery-ui/jquery.ui.resizable.min.js"></script> 
    <script src="../../js/plugins/jquery-ui/jquery.ui.spinner.js"></script> 
    <script src="../../js/plugins/jquery-ui/jquery.ui.slider.js"></script> 
    <!-- Bootstrap --> 
    <script src="../../js/bootstrap.min.js"></script> 
    <!-- Bootbox --> 
    <script src="../../js/plugins/bootbox/jquery.bootbox.js"></script> 
    <!-- Masked inputs --> 
    <script src="../../js/plugins/maskedinput/jquery.maskedinput.min.js"></script> 
    <!-- TagsInput --> 
    <script src="../../js/plugins/tagsinput/jquery.tagsinput.min.js"></script> 
    <!-- Datepicker --> 
    <script src="../../js/plugins/datepicker/bootstrap-datepicker.js"></script> 
    <!-- Timepicker --> 
    <script src="../../js/plugins/timepicker/bootstrap-timepicker.min.js"></script> 
    <!-- Colorpicker --> 
    <script src="../../js/plugins/colorpicker/bootstrap-colorpicker.js"></script> 
    <!-- Chosen --> 
    <script src="../../js/plugins/chosen/chosen.jquery.min.js"></script> 
    <!-- MultiSelect --> 
    <script src="../../js/plugins/multiselect/jquery.multi-select.js"></script> 
    <!-- CKEditor --> 
    <script src="../../js/plugins/ckeditor/ckeditor.js"></script> 
    <!-- PLUpload --> 
    <script src="../../js/plugins/plupload/plupload.full.js"></script> 
    <script src="../../js/plugins/plupload/jquery.plupload.queue.js"></script> 
    <!-- Custom file upload --> 
    <script src="../../js/plugins/fileupload/bootstrap-fileupload.min.js"></script> 

    <!-- Theme framework --> 
    <script src="../../js/eakroko.min.js"></script> 
    <!-- Theme scripts --> 
    <script src="../../js/application.min.js"></script> 
    <!-- Just for demonstration --> 
    <script src="../../js/demonstration.min.js"></script> 
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script> 

    <link rel="stylesheet" href="../../css/plugins/datepicker/datepicker.css"> 
    <link rel="apple-touch-icon-precomposed" href="img/apple-touch-icon-precomposed.png" /> 
    <!-- Validation --> 
    <script src="../../js/plugins/validation/jquery.validate.min.js"></script> 
    <script src="../../js/plugins/validation/additional-methods.min.js"></script> 
    <!-- Form --> 
    <script src="../../js/plugins/form/jquery.form.min.js"></script> 
    <!-- Wizard --> 
    <script src="../../js/plugins/wizard/jquery.form.wizard.min.js"></script> 
<script type= "text/javascript" src = "countries.js"></script> 
<SCRIPT LANGUAGE="JavaScript"> 
function checkIt(evt) { 
    evt = (evt) ? evt : window.event 
    var charCode = (evt.which) ? evt.which : evt.keyCode 
    if (charCode > 31 && (charCode < 48 || charCode > 57)) { 
     status = "This field accepts numbers only." 
     return false 
    } 
    status = "" 
    return true 
} 
</SCRIPT> 
</head><body> 
    <div id="navigation"> 
     <div class="container-fluid"> 
      <a href="#" id="brand">Talent+</a> 

      <ul class='main-nav'> 
       <li> 
        <a href="index.php"> 
         <i class="icon-home"></i> 
         <span>Dashboard</span> 

        </a> 
       </li> 

       <li class='active'> 
        <a href="post_jobs.php" > 
         <i class="icon-edit"></i> 
         <span>Post Jobs</span> 

        </a> 

       </li> 
<li> 
        <a href="view_jobs.php"> 
         <i class="icon-edit"></i> 
         <span>View/Edit Jobs</span> 

        </a> 

       </li> 
<li> 
        <a href="view_submit.php"> 
         <i class="icon-edit"></i> 
         <span>View Submissions</span> 

        </a> 

       </li><li> 
        <a href="mail.php"> 
         <i class="icon-edit"></i> 
         <span>Send Mails</span> 

        </a> 

       </li> 


      </ul> 
      <div class="user"> 
       <ul class="icon-nav"> 

        <li> 
         <a href="logout.php" class='lock-screen' rel='tooltip' title="Çıkış" data-placement="bottom"><i class="icon-lock"></i></a> 
        </li> 

       </ul> 
       <div class="dropdown"> 
        <a href="#" class='dropdown-toggle' data-toggle="dropdown"><?php 
    echo $_SESSION['full_name']; 
    if ($_SESSION['sex'] == 'male') { 
     echo "<img src='men-ava.jpg'></a>"; 
    } else { 
     echo "<img src='women-ava.jpg'></a>"; 
    } 
?> 
        <ul class="dropdown-menu pull-right"> 
         <li> 
          <a href="more-userprofile.php">Edit profile</a> 
         </li> 
         <li> 
          <a href="../../login/lock.php">Lock Screen</a> 
         </li> 

        </ul> 
       </div> 
      </div> 

     </div> 
    </div> 

    <div class="container-fluid" id="content"> 
    <div id="main"> 
     <div class="container-fluid"> 
       <div class="page-header"> 
        <div class="pull-left"> 
         <h1>Post a Job</h1> 
        </div> 
        <div class="pull-right"> 

         <ul class="stats"> 
          <li class='blue'> 
           <i class="icon-shopping-cart"></i> 
           <div class="details"> 
            <span class="big"><?php 

    $id = $_SESSION['user_data']; 
    $date = date('Y-m-d'); 
    $query = "select COUNT(*) from jobs where owner = '".$_SESSION['owner']."'"; 
    //echo $query; 
    $result = mysqli_query($con, $query); 
    $i  = 1; 
    if (mysqli_affected_rows($con) != 0) { 
     while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) { 
      echo $row['COUNT(*)']; 
     } 
    } 
    $i = 1; 


?></span> 
            <span>Jobs Posted</span> 
           </div> 
          </li> 

          <li class='orange'> 
           <i class="icon-calendar"></i> 
           <div class="details"> 
            <span class="big"></span> 
            <span></span> 
           </div> 
          </li> 
         </ul> 
        </div> 
       </div> 
       <div class="breadcrumbs"> 
        <ul> 
         <li> 
          <a href="index.php">Home</a> 
          <i class="icon-angle-right"></i> 
         </li> 
         <li> 
          <a href="#">Job Post</a> 

         </li> 

        </ul> 
        <div class="close-bread"> 
         <a href="#"> 
          <i class="icon-remove"></i> 
         </a> 
        </div> 
       </div></div> 
       <div class="row-fluid"> 
        <div class="span12"> 
         <div class="box box-color box-bordered"> 
          <div class="box-title"> 
           <h3> 
            <i class="icon-ok"></i>New Job Post 
           </h3> 
          </div>   <div class="box-content"> 
           <form action="edit_job_submi.php" method="POST" class='form-horizontal form-validate' id="bb" > 
<?php 
    $jobid = $_POST['jobid']; 
    $query = "select * from jobs WHERE jobid='$jobid'"; 


    //echo $query; 
    $result = mysqli_query($con, $query); 
    if (mysqli_affected_rows($con) != 0) { 
     while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) { 
      $title = $row['title']; 
      $details = $row['details']; 
      $expiry = $row['expiry']; 
      $extra = $row['extra']; 

      $job_group = $row['job_group']; 
      $istihdam = $row['istihdam']; 
      $education = $row['education']; 
      $tecrube = $row['tecrube']; 
      $sayi = $row['sayi']; 
      $hizmet = $row['hizmet']; 
      $telefon = $row['telefon']; 
      $mail = $row['mail']; 
      $adress = $row['adress']; 
      $sehir = $row['sehir']; 
      $baslangic = $row['baslangic']; 

      echo $education; 
/*    exit; */ 
      $hizmet_tipi = explode(" ", $hizmet); 

      echo $hizmet_tipi[0]; // piece1 
      echo $hizmet_tipi[1]; // piece2 
      echo $hizmet_tipi[2]; // piece2 

     } 
    } 

?>  

        <div class="control-group">    
         <label for="firstname" class="control-label">Job ID :</label> 
          <div class="controls"> 
           <input type="text" name="jobid" id="firstname" class="input-xlarge" data-rule-required="true" value ="<?php echo $jobid;?>" readonly/> 
          </div> 
        </div> 
        <div class="control-group"> 
         <label for="job_group" class="control-label">İş Grubu :</label> 
          <div class="controls">                     
           <select id="job_group" name="job_group" class="selectpicker" data-rule-required="true"> 
            <option value="">-- Kategori Seçiniz --</option> 
            <option value="Bilgi İşlem - Yazılım" <?php if($job_group == "Bilgi İşlem - Yazılım"){?> selected="selected" <?} ?> >Bilgi İşlem - Yazılım</option> 
            <option value="Eğlence" <?php if($job_group == "Eğlence"){?> selected="selected" <?} ?> >Eğlence</option> 
            <option value="Elektrik - Elektronik" <?php if($job_group == "Elektrik - Elektronik"){?> selected="selected" <?} ?> >Elektrik - Elektronik</option> 
            <option value="Gıda" <?php if($job_group == "Gıda"){?> selected="selected" <?} ?> >Gıda</option> 
            <option value="Hizmet Sektörü" <?php if($job_group == "Hizmet Sektörü"){?> selected="selected" <?} ?> >Hizmet Sektörü</option> 
            <option value="İletişim - Medya - Basın Yayın" <?php if($job_group == "İletişim - Medya - Basın Yayın"){?> selected="selected" <?} ?> >İletişim - Medya - Basın Yayın</option> 
            <option value="İnşaat" <?php if($job_group == "İnşaat"){?> selected="selected" <?} ?> >İnşaat</option> 
            <option value="İnsan Kaynakları" <?php if($job_group == "İnsan Kaynakları"){?> selected="selected" <?} ?> >İnsan Kaynakları</option> 
            <option value="Kültür - Sanat" <?php if($job_group == "Kültür - Sanat"){?> selected="selected" <?} ?> >Kültür - Sanat</option> 
            <option value="Makine Sektörü" <?php if($job_group == "Makine Sektörü"){?> selected="selected" <?} ?> >Makine Sektörü</option> 
            <option value="Mimarlık" <?php if($job_group == "Mimarlık"){?> selected="selected" <?} ?> >Mimarlık</option> 
            <option value="Mühendis" <?php if($job_group == "Mühendis"){?> selected="selected" <?} ?> >Mühendis</option> 
            <option value="Organizasyon" <?php if($job_group == "Organizasyon"){?> selected="selected" <?} ?> >Organizasyon</option> 
            <option value="Pazarlama - Satış" <?php if($job_group == "Pazarlama - Satış"){?> selected="selected" <?} ?> >Pazarlama - Satış</option> 
            <option value="Reklamcılık" <?php if($job_group == "Reklamcılık"){?> selected="selected" <?} ?> >Reklamcılık</option> 
            <option value="Yönetici Pozisyonla" <?php if($job_group == "Yönetici Pozisyonları"){?> selected="selected" <?} ?> >Yönetici Pozisyonları</option> 
           </select> 
          </div> 
        </div>  
        <div class="control-group"> 
         <label for="firstname" class="control-label">İlan Başlığı :</label> 
          <div class="controls"> 
           <input type="text" name="title" id="firstname" class="form-control input-sm" data-rule-required="true" value ="<?php echo $title;?>" > 
          </div> 
        </div> 
        <div class="control-group"> 
         <label for="istihdam" class="control-label">İstihdam Türü:</label> 
          <div class="controls"> 
           <select id="istihdam" name="istihdam" data-rule-required="true" > 
            <option <?php if($istihdam == "Tam Zamanlı"){?> selected="selected" <?} ?> value="Tam Zamanlı">Tam Zamanlı</option> 
            <option <?php if($istihdam == "Yarı Zamanlı"){?> selected="selected" <?} ?> value="Yarı Zamanlı">Yarı Zamanlı</option> 
            <option <?php if($istihdam == "Dönemsel"){?> selected="selected" <?} ?> value="Dönemsel">Dönemsel</option> 
           </select> 
          </div> 
        </div> 
        <div class="control-group"> 
         <label for="education" class="control-label">Eğtim Gereksinimi:</label> 
          <div class="controls"> 
           <select id="education" name="education" data-rule-required="true" > 
            <option <?php if($education == "Lise"){?> selected="selected" <?} ?> value="Lise">Lise</option> 
            <option <?php if($education == "Önlisans"){?> selected="selected" <?} ?> value="Önlisans">Önlisans</option> 
            <option <?php if($education == "Lisans"){?> selected="selected" <?} ?> value="Lisans">Lisans</option> 
            <option <?php if($education == "Lisansüstü"){?> selected="selected" <?} ?> value="Lisansüstü">Lisans Üstü/Doktora</option> 
            <option <?php if($education == "Meslek Lisesi"){?> selected="selected" <?} ?> value="Meslek Lisesi">Meslek Lisesi</option> 
            <option <?php if($education == "Diğer"){?> selected="selected" <?} ?> value="Diğer">Diğer</option> 
           </select> 
          </div> 
        </div> 
        <div class="control-group"> 
         <label for="tecrube" class="control-label">Tecrübe (Yıl):</label> 
          <div class="controls"> 
           <input class="form-control input-sm" id="tecrube" data-rule-required="true" name="tecrube" type="text" value ="<?php echo $tecrube;?>">     
          </div> 
        </div> 
        <div class="control-group"> 
         <label for="sayi" class="control-label">Eleman Sayısı:</label> 
          <div class="controls"> 
           <input class="form-control input-sm" id="sayi" data-rule-required="true" name="sayi" type="text" value ="<?php echo $sayi;?>">     
          </div> 
        </div>  
        <div class="control-group"> 
         <label for="ver" class="control-label" style="padding-top: 30px;">Sağlanılan İmkânlar:</label> 
          <div class="controls"> 
           <label class="checkbox-inline"> 
            <input type="checkbox" name="hizmet[]" data-rule-required="true" value="Sigorta" <?php if(in_array("Sigorta",$hizmet_tipi)){?> checked="checked" <?} ?> >Sigorta 
           </label> 
           <label class="checkbox-inline"> 
            <input type="checkbox" name="hizmet[]" data-rule-required="true" value="Yol/Servis" <?php if(in_array("Yol/Servis",$hizmet_tipi)){?> checked="checked" <?} ?> >Yol/Servis 
           </label> 
           <label class="checkbox-inline"> 
            <input type="checkbox" name="hizmet[]" data-rule-required="true" value="Yemek" <?php if(in_array("Yemek",$hizmet_tipi)){?> checked="checked" <?} ?> >Yemek 
           </label> 
          </div> 
        </div> 




        <div class="control-group"> 
         <label for="telefon" class="control-label">İletişim Telefon Numarası:</label> 
          <div class="controls"> 
           <input class="form-control input-sm" id="telefon" name="telefon" type="text" data-rule-required="true" value="<?php echo $telefon;?>">     
          </div> 
        </div> 

        <div class="control-group"> 
         <label for="mail" class="control-label">İletişim Mail Adresi:</label> 
          <div class="controls"> 
           <input class="form-control input-sm" id="mail" name="mail" type="text" data-rule-required="true" value="<?php echo $mail;?>">     
          </div> 
        </div> 

        <div class="control-group"> 
         <label for="sehir" class="control-label" >Şehir:</label> 
          <div class="controls"> 
           <select class="form-control" id="sehir" name="sehir" data-rule-required="true"> 
             <option value="">Seçiniz</option> 
             <option value="İzmir">İzmir</option> 
             <option value="İstanbul">İstanbul</option> 
             <option value="Ankara">Ankara</option> 
             <option value="Adana">Adana</option> 
             <option value="Adıyaman">Adıyaman</option> 
             <option value="Afyon">Afyon</option> 
             <option value="Ağrı">Ağrı</option> 
             <option value="Aksaray">Aksaray</option> 
             <option value="Amasya">Amasya</option> 
             <option value="Antalya">Antalya</option> 
             <option value="Ardahan">Ardahan</option> 
             <option value="Artvin">Artvin</option> 
             <option value="Aydın">Aydın</option> 
             <option value="Balıkesir">Balıkesir</option> 
             <option value="Bartın">Bartın</option> 
             <option value="Batman">Batman</option> 
             <option value="Bayburt">Bayburt</option> 
             <option value="Bilecik">Bilecik</option> 
             <option value="Bingöl">Bingöl</option> 
             <option value="Bitlis">Bitlis</option> 
             <option value="Bolu">Bolu</option> 
             <option value="Burdur">Burdur</option> 
             <option value="Bursa">Bursa</option> 
             <option value="Çanakkale">Çanakkale</option> 
             <option value="Çankırı">Çankırı</option> 
             <option value="Çorum">Çorum</option> 
             <option value="Denizli">Denizli</option> 
             <option value="Diyarbakır">Diyarbakır</option> 
             <option value="Düzce">Düzce</option> 
             <option value="Edirne">Edirne</option> 
             <option value="Elazığ">Elazığ</option> 
             <option value="Erzincan">Erzincan</option> 
             <option value="Erzurum">Erzurum</option> 
             <option value="Eskişehir">Eskişehir</option> 
             <option value="Gaziantep">Gaziantep</option> 
             <option value="Giresun">Giresun</option> 
             <option value="Gümüşhane">Gümüşhane</option> 
             <option value="Hakkari">Hakkari</option> 
             <option value="Hatay">Hatay</option> 
             <option value="Iğdır">Iğdır</option> 
             <option value="Ispata">Ispata</option> 
             <option value="İçel (Mersin)">İçel (Mersin)</option> 
             <option value="Karabük">Karabük</option> 
             <option value="Karaman">Karaman</option> 
             <option value="Kars">Kars</option> 
             <option value="Kastamonu">Kastamonu</option> 
             <option value="Kayseri">Kayseri</option> 
             <option value="Kırıkkale">Kırıkkale</option> 
             <option value="Kırklareli">Kırklareli</option> 
             <option value="Kırþehir">Kırþehir</option> 
             <option value="Kilis">Kilis</option> 
             <option value="Kocaeli">Kocaeli</option> 
             <option value="Konya">Konya</option> 
             <option value="Kütahya">Kütahya</option> 
             <option value="Malatya">Malatya</option> 
             <option value="Manisa">Manisa</option> 
             <option value="Maraş">Maraş</option> 
             <option value="Mardin">Mardin</option> 
             <option value="Muğla">Muğla</option> 
             <option value="Muş">Muş</option> 
             <option value="Nevşehir">Nevşehir</option> 
             <option value="Niğde">Niğde</option> 
             <option value="Ordu">Ordu</option> 
             <option value="Osmaniye">Osmaniye</option> 
             <option value="Rize">Rize</option> 
             <option value="Sakarya">Sakarya</option> 
             <option value="Samsun">Samsun</option> 
             <option value="Siirt">Siirt</option> 
             <option value="Sinop">Sinop</option> 
             <option value="Sivas">Sivas</option> 
             <option value="Şırnak">Şırnak</option> 
             <option value="Tekirdağ">Tekirdağ</option> 
             <option value="Tokat">Tokat</option> 
             <option value="Trabzon">Trabzon</option> 
             <option value="Tunceli">Tunceli</option> 
             <option value="Urfa">Urfa</option> 
             <option value="Uşak">Uşak</option> 
             <option value="Van">Van</option> 
             <option value="Yalova">Yalova</option> 
             <option value="Yozgat">Yozgat</option> 
             <option value="Zonguldak">Zonguldak</option> 
            </select> 
          </div> 
        </div> 
        <div class="control-group"> 
         <label for="baslangic" class="control-label">Başlangıç Tarihi:</label> 
         <div class="controls"> 
          <input type="text" name="baslangic" id="baslangic" class="input-medium datepick" data-rule-minlength="1" value="<?php echo $baslangic;?>"> 
         </div> 
        </div> 

        <div class="control-group"> 
         <label for="anotherelem" class="control-label">Bitiş Tarihi:</label> 
         <div class="controls"> 
          <input type="text" name="bitis" id="textfield2" class="input-medium datepick" data-rule-minlength="1" value="<?php echo $expiry;?>"> 
         </div> 
        </div> 
        <div class="control-group"> 
         <label for="anotherelem" class="control-label" >Detaylar:</label> 
         <div class="controls"> 
          <textarea name="details" data-rule-required="true" ><?php echo htmlspecialchars($details); ?></textarea> 

         </div> 
        </div> 

              </div> 
<div class="form-actions"><input type="hidden" name="wait" value="yes"/> 
             <input type="submit" class="btn btn-primary" value="Submit"> 
             <button type="button" class="btn">Cancel</button> 
            </div> 
           </form>       

             </div> 
            </div> 
            </div> 


            </div> 


          </div> 

            </div> 


          </div> 
         </div> 
        </div> 
       </div></div></div></div> 
       </div> <div class="alert alert-info"> 
            <center><h4>e-HAS ,A Complete Hospital Management & Administration System</h4> 
            <p><a href="http://techdynamics.org">Developed By TechDynamics INDIA</a> Powered 

By Saba Wasim</p></center> 
           </div> 
      </div> 
     </div></div> 



    <script type="text/javascript"> 
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1"); 
     </script> 
</body> 

    </html> <?php 
} else { 
    echo "<meta http-equiv='refresh' content='0; url=index.php'>"; 
} 
?> 
+0

檢查'{}'和'PHP'標籤。你在混合''&''。 –

+0

@Epodax這不會導致錯誤。 :) –

回答

0

在大多數地方,你已經使用<?代替<?php,嘗試把<?php標籤

0

試着改變你的代碼,其中<?}並把之間的空間?和}這樣<? }

因此,所有這些條目看起來像這樣:

> <?} ?> 

我在其他例子中看到了這個,似乎解決了這個問題。

Brad

相關問題