note 111571 added to index
| From: | ravi dot gupta1100 at gmail dot com | Date: | Tue, 05 Mar 2013 12:25:42 +0000 |
| Subject: | note 111571 added to index | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-193901@lists.php.net to get a copy of this message | ||
<table border="1" cellpadding="0"
cellspacing="1"style="border-collapse: collapse"
bordercolor="#000000" width="100%"
id= "AutoNumber1"><tr><td height="17"><font
size="2" color="#993300"
face="Verdana"> </font></td>
</tr>
<?php for ($i=1;$i<=$days;$i++)
{
?>
<?php
$total="E".$i;
?>
<?php
$s49="Select * from leave_master where emp_no='$userid' and
emp_name='$user' and dtt='$j' and mnth='$mnth3' and
yr='$yr3'";
$r49=mysql_query($s49);
$nm_row49=mysql_num_rows($r49);
if($nm_row49>0)
{
$x3=0;
$nm49=mysql_fetch_array($r49);
$v1=$nm49[1];
}
else
{
$x3=1;
}
$sql7="Select * from timeshifttotal_master where emp_no='$userid' and
mnth='$mnth3' and yr='$yr3' and dtt='$i'";
$res7=mysql_query($sql7) or die(mysql_error());
$nm_row7=mysql_num_rows($res7);
if($nm_row7>0)
{
$row7=mysql_fetch_array($res7);
$val=$row7[2];
/* if($val>4.5)
{
$val="4.5";
$gdtot+=$val;
}
*/ }
else
{
$val="";
}
?>
<tr>
<td align="center" bgcolor="#FFFFFF" height="25"
valign=""><input type="text" id="<?=$total?>"
name="<?=$total?>" value="<?=$val?>" size="3"
readonly=""><font size="2" color="#993300"
face="Verdana"> </font></td></tr>
<?php
}
?>
</table>
----
Server IP: 69.147.83.199
Probable Submitter: 27.54.167.25
----
Manual Page -- http://php.net/manual/en/index.php
Edit -- https://master.php.net/note/edit/111571
Del: integrated -- https://master.php.net/note/delete/111571/integrated
Del: useless -- https://master.php.net/note/delete/111571/useless
Del: bad code -- https://master.php.net/note/delete/111571/bad+code
Del: spam -- https://master.php.net/note/delete/111571/spam
Del: non-english -- https://master.php.net/note/delete/111571/non-english
Del: in docs -- https://master.php.net/note/delete/111571/in+docs
Del: other reasons-- https://master.php.net/note/delete/111571
Reject -- https://master.php.net/note/reject/111571
Search -- https://master.php.net/manage/user-notes.php