Viewing file: duefeesonly.php (3.31 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include('session.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>BATCH FEES DETAILS</title> </head> <center> <body> <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#CCCCCC"> <tr> <td colspan="4" bgcolor="#FFFF00"><?php include('header.php'); ?></td> </tr> <tr> <td colspan="4" bgcolor="#FFFF00"><?php include('menubar.php'); ?></td> </tr> <tr> <td colspan="3" bgcolor="#CCCCCC"> <?php include('sessisionbar.php'); ?></td> </tr> </table>
<form id="form1" name="form1" method="post" action="registration_edit.php"> <?php
$var = $_GET['ID'] ;
$link = mysqli_connect("localhost", "pcclasses_user", "rb!pcc838", "pcclasses_data"); // Check connection if($link === false){ die("ERROR: Could not connect. " . mysqli_connect_error()); } $field = 'roll_no'; // Attempt select query execution $sql = "select * from student_admission where main='MAIN' AND programname='$var' order by ID"; if($result = mysqli_query($link, $sql)) { if(mysqli_num_rows($result) > 0) { echo "<H2>STUDENT DUE FEES LIST </H2>"; echo "<table width=\"100%\" border=\"1\" bgcolor=\"#33CCCC\" style='table-layout:fixed'>\n"; echo " <tr>\n"; echo " <td align='left'>ROLL NO</td>\n"; echo " <td align='left'>STUDENT NAME</td>\n"; echo " <td align='left'>MOBILE NO</td>\n"; echo " <td align='left'>ADMISSION DATE</td>\n"; echo " <td align='left'>COURSE FEE</td>\n"; echo " <td align='left'>DEPOSITE FEE</td>\n"; echo " <td align='left'>DUE FEE</td>\n"; echo " <td align='left'>BRANCH</td>\n"; echo " <td align='left'>BATCH</td>\n"; echo " </tr>\n"; while($row = mysqli_fetch_array($result)) { $duefees=$row[totalfees]-$row[depositfees]; $cfees= $cfees+$row[totalfees]; $dfees= $dfees+$row[depositfees]; if($row[totalfees]!==$row[depositfees]) { echo " <tr>\n"; echo " <td align='left'>$row[roll_no]</td>\n"; echo " <td align='left'>$row[stduentname]</td>\n"; echo " <td align='left'>$row[mobileno]</td>\n"; echo " <td align='left'>$row[tdate]</td>\n"; echo " <td align='left'>$row[totalfees]</td>\n"; echo " <td align='left'>$row[depositfees]</td>\n"; echo " <td align='left'>$duefees</td>\n"; echo " <td align='left'>$row[branch]</td>\n"; echo " <td align='left'>$row[programname]</td>\n"; echo " </tr>\n"; } } echo "</table>"; // Free result set mysqli_free_result($result); } else{ echo "No records matching your query were found."; } } else{ echo "ERROR: Could not able to execute $sql. " . mysqli_error($link); } $laserno=$accountnew+1;
// Close connection mysqli_close($link); ?>
<table width="100%" border="1" cellspacing="4" cellpadding="4"> <tr> <td width='2%'>1.</td> <td width='5%'>Course Fees</td> <td width='5%' ><?php echo $cfees ?></td> </tr> <tr> <td>2.</td> <td>Deposit Fees</td> <td><?php echo $dfees ?> </td> </tr> <tr> <td>3.</td> <td>Due Fees</td> <td><?php echo $cfees- $dfees ?></td> </tr> </table> </form> <?php include('footer.php'); ?> </body></center> </html>
|