hi,
sorry again for trouble still im getting trouble with time fields for von and bis 2 time fields
1. then i select time from BIS field and click on save then i get bis time in VON field its fine but when i click clock image on bis field to get system and click on save then i,m getting 0:00 i dont no why actually i already discussed this topic and i also get feedback but unfortunately my brain didnt digest this one----that when i chaneg time it works fine but what happen when
[color=blue]
<? if (!isset($HTTP_POST_VARS["Save"])) { ?>
<td nowrap align="center">
<select name="von">
<?if( isset($bis) ){
fillDD(0, 0, $bis);
}else{
$mins = date('i');
$mins -= ($mins % 5);
fillDD(0, 0, date('H') . ":" . $mins);
} ?>
</select>
<img src="../img/clock.gif" onclick="inputTime();calculateIst()" width="16" height="16" alt="Clock">
</td>
[/color]
[color=orange]
<td nowrap align="center">
<select name="bis" onchange="calculateIst()">
<option value="<?=date('H:i')?>"><? echo (date('H:i')); ?></option>
<? fillDD(0, 0, -1); ?>
</select>
<img src="../img/clock.gif" onclick="insertTime();calculateIst()" width="16" height="16" alt="Clock">
</td>
[/color]
2.whn i login second time i m not getting the bis time in von time last entered for eg.
Von Bis
13:21 14:30 // this si fine
13:20 13:21
but when i login im getting system time in Von field instead of 14:30 in Von field in same date i check in database but it only inserts and then select from database
[color=green]
if (isset($HTTP_POST_VARS["bis"]))
{
$von = $HTTP_POST_VARS["von"];
$bis = $HTTP_POST_VARS["bis"];
}
$query = "INSERT INTO t_emp";
$query.="(von,bis) values ";
$query.="('$von','$bis')";
mysql_query($query) or die("Query failed: Insert new row");
[/color]
please bear with this code as im new bie in this session kind of
things anyone modify this code will really be appreciated or need full code i will send ,hope it is clear
sorry for ur inconvenience
thanks in advance
arun