خرید بک لینک

Vote count: 0

I have created page for inserting employee's attendance.

I just input the Employee Code, and by clicking "Check" Button, Employee Name will automatically showing.

But, I've got problem while run the page. The button didn't show the employee name when i click Check Button after filling the employee code.

What's wrong in my code ?

form_empl.php

<html>
<body>    
Employee Code : <input type="number" name="empl_kode"  placeholder="Employee Code" required="required"><br>

    <button type="button" name="cek_empl" value="cek_empl">Check</button><br>

Employee Name :<input type="text" name="empl_name" value="<?php $data->EMPL_NAME?>"placeholder="Employee Name"><br>

</body>
</html>

<?php
require('empl_function.php');
$empl_kode=$_POST['empl_kode'];
$empl_name=$_POST['empl_name'];
if (isset($_POST['cek_empl'])){
    $Emp=new Employee();
    $show=$Emp->showEmployee();
    while ($data=  ibase_fetch_object($show)){
}
}
?>

empl_function.php

function showEmployee(){
    $sql="SELECT empl_kode,empl_name FROM employee";
    $query=ibase_query($sql);
    retu $query;
    }

New Attendance Page

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 7 مرداد 1395 ساعت: 9:26

صفحه بندی